joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434f40
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
mov dword [esi], 0x441fb4
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0xc]
push 0xc8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x434f73
mov edx, dword [esi + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi + 8]
push ecx
call edi
mov edx, dword [esi + 4]
push edx
call edi
add esi, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
ret

Function at 0x435180
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43df88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
or eax, 0xffffffff
push esi
mov dword [esp + 0x14], eax
push edi
mov dword [esp + 0x1c], eax
mov al, byte [esp + 0x30]
mov edi, ecx
mov byte [esp + 0x10], al
mov byte [esp + 0x11], 0
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], 0
call dword [sym.imp.MSVCRT.dll__getpid]
mov word [esp + 0x1e], ax
call dword [sym.imp.MSVCRT.dll_rand]
lea esi, [edi + 0x14]
mov dword [esp + 0x18], eax
test esi, esi
mov dword [esp + 8], 0x441fd0
mov dword [esp + 0xc], esi
je 0x4351ef
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0xc]
lea ecx, [edi + 4]
lea edx, [esp + 0x10]
mov dword [esp + 0x28], 0
push edx
push 1
push eax
call fcn.00435580
test esi, esi
je 0x435218
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x20]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x43a000
Capabilities:
Get disk information

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push eax
xor ebp, ebp
call fcn.0043a1e0
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x43a028
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
pop ebx
pop ecx
ret
mov ebx, dword [esp + 0x20]
mov edx, dword [ebx]
lea eax, [edx*4 + 4]
push eax
call sub.MSVCRT.dll_malloc
mov esi, dword [esp + 0x20]
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi], edi
jne 0x43a052
pop edi
pop esi
mov dword [ebx], eax
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [ebx]
xor eax, eax
push 0x8000
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call sub.MSVCRT.dll_malloc
add esp, 4
mov ebx, eax
mov ecx, 0x2000
xor eax, eax
mov edi, ebx
push 0x8000
push ebx
push eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x43a0b5
mov eax, dword [esp + 0x20]
push ebx
mov dword [eax], 0
call sub.MSVCRT.dll_free
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x8000]
cmp eax, ecx
jae 0x43a1bb
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x43a1b7
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push edx
call sub.MSVCRT.dll__memicmp
add esp, 0xc
test eax, eax
jne 0x43a196
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 8
push ecx
call sub.MSVCRT.dll_malloc
mov ecx, dword [esi]
mov edi, ebx
add esp, 4
mov dword [ecx + ebp*4], eax
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi]
repne scasb al, byte es:[edi]
mov edi, dword [edx + ebp*4]
not ecx
add ecx, 3
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esi]
mov edi, ebx
not ecx
mov edx, dword [eax + ebp*4]
add ecx, 3
mov dword [edx], ecx
mov eax, dword [esi]
mov edx, dword [str.._]
mov ecx, dword [eax + ebp*4]
add ecx, 4
mov dword [ecx], edx
mov al, byte [0x458874]
mov byte [ecx + 4], al
mov ecx, dword [esi]
xor eax, eax
mov edx, dword [ecx + ebp*4]
or ecx, 0xffffffff
add edx, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
add eax, 0x8000
lea ebx, [ebx + ecx + 1]
cmp ebx, eax
jb 0x43a0c7
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push eax
mov dword [ecx], ebp
call sub.MSVCRT.dll_free
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x43b0c0
Capabilities:
Get hostname

Disassembly:
mov eax, dword [ecx + 0x10]
push esi
lea esi, [ecx + 0x10]
push edi
test eax, eax
jne 0x43b0e9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
inc eax
pop edi
neg eax
sbb eax, eax
pop esi
neg eax
dec eax
ret 8
call fcn.0043b400
push eax
push 4
push esi
call fcn.0043c150
add esp, 0xc
test eax, eax
je 0x43b176
mov esi, dword [eax]
test esi, esi
je 0x43b176
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
dec ecx
cmp ecx, eax
jb 0x43b150
test eax, eax
jbe 0x43b13a
mov edx, dword [esp + 0xc]
lea ecx, [eax - 1]
push ebx
mov ebx, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [edx + eax - 1], 0
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0x27
pop edi
mov eax, 0xfffffffe
pop esi
ret 8
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret 8
pop edi
or eax, 0xffffffff
pop esi
ret 8

Function at 0x43b7a0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x43b7cf
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], esi
or eax, 0xffffffff
pop esi
ret

Function at 0x43b800
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x43b82f
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], esi
or eax, 0xffffffff
pop esi
ret

Function at 0x43b870
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x43b8a4
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], esi
or eax, 0xffffffff
pop esi
ret

Function at 0x43b8b0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x43b8e4
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], esi
or eax, 0xffffffff
pop esi
ret
Function at 0x43b8f0
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
cmp ecx, 0xffff
jne 0x43b914
cmp eax, 4
jne 0x43b908
xor eax, eax
ret
cmp eax, 0x400
jne 0x43b914
mov eax, 4
mov edx, dword [esp + 0x14]
push esi
push edi
push edx
mov edx, dword [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43b95b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [sym.imp.MSVCRT.dll__errno]
mov esi, eax
call edi
mov dword [eax], esi
or esi, 0xffffffff
call edi
cmp dword [eax], 0x273d
jne 0x43b95b
call edi
mov dword [eax], 0x59
mov eax, esi
pop edi
pop esi
ret

Function at 0x43c130
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
ret

Function at 0x43c1b0
Capabilities:
Get socket status

Disassembly:
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x43c1bc
xor eax, eax
jmp 0x43c1c1
call fcn.0043b370
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_select]
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x60cf5798
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..pdata_1
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x26230898
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x41b58b
Capabilities:
Read file on windows

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

Function at 0x41b596
Capabilities:
Read file on windows

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

Function at 0x41b990
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00409dd0
mov eax, dword [0x481140]
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.0041852c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41b9d2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41bb2e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425e70
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 + 0x482f28]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041cb60
mov ecx, dword [esi*4 + 0x482f28]
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 0x41bb27
cmp eax, dword [edi + ecx + 0x24]
jne 0x41bb27
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 0x41bb27
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041cb60
add esp, 0x14
test edx, edx
jl 0x41bb27
jg 0x41ba9d
test eax, eax
jb 0x41bb27
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41bb27
jl 0x41bab7
cmp dword [ebp - 0x1008], eax
ja 0x41bb27
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41bad5
test ebx, ebx
je 0x41bb0e
cmp ecx, edi
jae 0x41bb0e
mov al, byte [ecx]
cmp al, 0xd
jne 0x41baef
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41bafb
cmp byte [ecx + 1], 0xa
jne 0x41bafb
inc ecx
jmp 0x41bafb
movzx eax, al
movsx eax, byte [eax + 0x481418]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41bad5
cmp edx, ebx
jne 0x41bad5
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41bb2c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004092b4
leave
ret
Function at 0x41bffe
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 + 0x482f28]
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 0x41c03e
cmp byte [ebx], 0xa
jne 0x41c03e
or byte [eax + edi + 0x28], 4
jmp 0x41c043
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41c141
mov al, byte [edx]
cmp al, 0x1a
je 0x41c123
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41c072
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41c097
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41c0a1
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 0x41c054
jmp 0x41c141
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 0x41c11e
cmp dword [ebp - 0xc], 0
je 0x41c11e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x482f28]
test byte [eax + edi + 0x28], 0x48
je 0x41c0f8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c0e3
mov byte [esi], dl
jmp 0x41c0f4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x482f28]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c141
cmp byte [ebp - 1], 0xa
jne 0x41c107
cmp esi, ebx
jne 0x41c107
mov byte [esi], 0xa
jmp 0x41c140
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041cb7e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c141
mov byte [esi], 0xd
jmp 0x41c140
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x482f28]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c13d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c141
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c14a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x482f28]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c18d
cmp word [esi], dx
jne 0x41c18d
or byte [edi + eax + 0x28], 4
jmp 0x41c192
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41c2e5
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41c2c5
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41c1d4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41c20a
cmp eax, edx
jae 0x41c216
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41c1ac
jmp 0x41c2e5
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c2c1
cmp dword [ebp - 0x14], 0
je 0x41c2c1
mov eax, dword [ebx*4 + 0x482f28]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41c299
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41c262
mov word [esi], cx
jmp 0x41c295
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x482f28]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x482f28]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x482f28]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41c2e5
pop ebx
cmp word [ebp - 4], bx
jne 0x41c2aa
cmp esi, dword [ebp + 0xc]
jne 0x41c2aa
mov word [esi], bx
jmp 0x41c2e2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041cb7e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41c2e5
push 0xd
jmp 0x41c2de
mov ecx, dword [ebx*4 + 0x482f28]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c2dc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c2e5
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e0dc
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 0x41e179
push ebx
push esi
call fcn.0041e0a5
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.0041cd2a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41e126
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e178
push edi
push eax
call fcn.00417686
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41e146
call fcn.0041745c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e177
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041cd2a
add esp, 0x20
test eax, eax
jne 0x41e165
push edi
call fcn.0041745c
jmp 0x41e16d
push ebx
call fcn.0041745c
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 0x425c70
Capabilities:
Parse pe header

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

Function at 0x427000
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push str.Success_created.
push 0x4825b8
mov ebx, ecx
call fcn.00401200
push eax
call fcn.004021f0
push 8
call fcn.00409271
mov esi, eax
add esp, 0x10
test esi, esi
je 0x427062
push 4
call fcn.00409271
add esp, 4
test eax, eax
je 0x427040
mov dword [eax], 0x427bc0
jmp 0x427042
xor eax, eax
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x4021d0
push 0
push 0
call fcn.00410396
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x42709d
jmp 0x427064
xor esi, esi
cmp dword [esi + 4], 0
je 0x4270aa
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [esi + 4], eax
je 0x4270b1
push 0
push dword [esi + 4]
push dword [esi]
call fcn.00405ba5
add esp, 0xc
test eax, eax
jne 0x4270b8
push 8
push esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.004092a1
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
ret
push 6
mov dword [edi], 0
call fcn.00405d5b
push 1
call fcn.00405d5b
push 5
call fcn.00405d5b
push 2
call fcn.00405d5b
int3

Function at 0x4275d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x24c
mov eax, dword [0x481140]
Function at 0x3caa8a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x305a000]
push edi
or ebp, 0xffffffff
jmp 0x3caa8c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x3caa8c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x3caa8b8
mov eax, 1
add ebx, ebx
jne 0x3caa8db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x3caa8ec
jne 0x3caa90b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x3caa90b
dec eax
add ebx, ebx
jne 0x3caa8f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x3caa8d0
add ebx, ebx
jne 0x3caa907
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x3caa95d
xor ecx, ecx
sub eax, 3
jb 0x3caa923
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x3caa992
sar eax, 1
mov ebp, eax
jmp 0x3caa92e
add ebx, ebx
jne 0x3caa92e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x3caa8fc
inc ecx
add ebx, ebx
jne 0x3caa93c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x3caa8fc
add ebx, ebx
jne 0x3caa949
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x3caa93e
jne 0x3caa95a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x3caa93e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x3caa97c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x3caa96e
jmp 0x3caa8be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x3caa97c
add edi, ecx
jmp 0x3caa8be
pop esi
lea edi, [esi + 0x38a3000]
mov eax, dword [edi]
or eax, eax
je 0x3caa9e4
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x38c59d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x38c5e74]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x3caa999
mov ecx, edi
jns 0x3caa9c8
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 + 0x38c5e78]
or eax, eax
je 0x3caa9de
mov dword [ebx], eax
add ebx, 4
jmp 0x3caa9b6
call dword [esi + 0x38c5e80]
mov ebp, dword [esi + 0x38c5e7c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x2b7]
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 0x3caaa18
sub esp, 0xffffff80
jmp 0x1103b45

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 0x1000f6d3
Capabilities:
Parse pe header

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