joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415ca0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
movzx ebx, byte [edx + 0x1c]
mov dword [ebp - 0x20], ecx
xor eax, eax
mov ecx, 0
mov edi, edx
call 0x415cbe
pop esi
cmp bl, 1
setne dl
sbb ecx, ecx
or cl, dl
cmp cl, 0xff
movzx edx, cl
je 0x415cd5
test edx, edx
jne 0x415cfe
mov byte [ebp - 0x14], bl
movzx ebx, byte [edi + 0x1e]
cmp cl, 0xff
mov dword [ebp - 0x18], ebx
je 0x415ce8
test edx, edx
jne 0x415cf2
mov ecx, edi
call fcn.00415bb0
movzx eax, al
movzx ebx, byte [ebp - 0x14]
xor ecx, ecx
test bl, bl
jne 0x415d5f
jmp 0x415d0b
mov dword [ebp - 0x18], 0
xor ecx, ecx
test bl, bl
jne 0x415d5f
xor ecx, ecx
cmp byte [edi + 8], 6
lea edx, [edi + 8]
cmove edx, ecx
je 0x415d5f
movzx ebx, byte [edx]
mov ecx, 6
add esi, dword [ebx*4 + 0x415e74]
jmp esi
add eax, ecx
movzx ecx, byte [ebp - 0x18]
mov edx, dword [edi + 4]
mov dword [ebp - 0x1c], ecx
add ecx, eax
cmp edx, ecx
jb 0x415e62
mov esi, edi
mov edi, dword [edi]
cmp edx, ecx
mov ebx, edi
lea ebx, [edi + ecx]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
jne 0x415d96
movzx eax, byte [esi + 8]
mov byte [ebp - 0xd], al
mov ebx, dword [ebp - 0x14]
xor eax, eax
jmp 0x415e02
movzx ebx, byte [esi + 8]
cmp bl, 3
mov byte [ebp - 0xd], bl
jae 0x415dbf
add eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
sub eax, edx
lea esi, [edx + esi - 1]
nop
cmp byte [esi], 0x5c
je 0x415e51
dec esi
inc eax
jne 0x415db0
jmp 0x415d8f
add eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
sub eax, edx
lea edi, [edx + esi - 1]
nop
movzx esi, byte [edi]
cmp esi, 0x2f
je 0x415deb
cmp esi, 0x5c
je 0x415deb
dec edi
inc eax
jne 0x415dd0
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
xor eax, eax
jmp 0x415e02
mov edx, dword [ebp - 0x1c]
not eax
lea ecx, [ecx + eax + 1]
cmp edx, ecx
jb 0x415e5b
mov ebx, dword [ebp - 0x18]
mov eax, 1
add ebx, ecx
sub edx, ecx
je 0x415e26
mov cl, 9
cmp edx, 2
je 0x415e2a
cmp edx, 1
jne 0x415e39
cmp byte [ebx], 0x2e
jne 0x415e39
xor ecx, ecx
cmp byte [ebp - 0xd], 3
setae cl
lea ecx, [ecx + ecx*2 + 7]
jmp 0x415e39
mov cl, 0xa
jmp 0x415e39
cmp byte [ebx], 0x2e
jne 0x415e39
cmp byte [ebx + 1], 0x2e
sete cl
xor cl, 9
mov esi, dword [ebp - 0x20]
add eax, edx
mov dword [esi], eax
mov byte [esi + 4], cl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
not eax
lea ecx, [ecx + eax + 1]
cmp edx, ecx
jae 0x415df8
push 0x8f0f58
jmp 0x415e67
push 0x8f0f48
call fcn.004042a0
add esp, 4
ud2
Function at 0x42a050
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x42a174
mov dword [esp], ecx
mov edi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
movzx ecx, byte [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ch, dl
and ch, 0x3f
cmp ch, 0xd
je 0x42a195
and edx, 0x3f
cmp edx, 0xe
je 0x42a1a4
cmp edx, 0xf
jne 0x42a183
mov eax, dword [edi + 0x68]
test eax, eax
je 0x42a183
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x42a206
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x28], edx
mov dword [esp + 0xc], edx
xor edi, edi
mov dword [esp + 0x24], eax
mov dword [esp + 8], ecx
mov ecx, edx
mov edx, dword [esp + 8]
jmp 0x42a0d8
mov dword [esp + 0xc], ecx
sub ecx, edi
jbe 0x42a117
mov esi, dword [ebp + 0xc]
shr ecx, 1
xor ebx, ebx
add ecx, edi
imul eax, ecx, 0x110
cmp dword [edx + eax + 0x108], esi
mov eax, 0xff
setne bl
cmovb ebx, eax
cmp bl, 1
je 0x42a0d0
movzx eax, bl
cmp eax, 0xff
jne 0x42a206
inc ecx
mov edi, ecx
mov ecx, dword [esp + 0xc]
sub ecx, edi
ja 0x42a0d8
test edi, edi
je 0x42a206
mov edx, dword [esp + 0x28]
dec edi
cmp edi, edx
jae 0x42a27b
mov edx, dword [esp + 8]
imul ecx, edi, 0x110
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x18]
cmp dword [edx + ecx + 0xa8], 0
jne 0x42a159
add edx, ecx
mov ecx, dword [edx + 0xac]
cmp ecx, eax
jbe 0x42a228
mov edx, dword [esp]
movzx eax, byte [esp + 0x12]
movzx esi, word [esp + 0x10]
mov byte [esp + 6], al
mov word [esp + 4], si
jmp 0x42a209
mov dword [ecx + 4], 0
mov byte [ecx], 0x4b
jmp 0x42a220
mov eax, dword [esp]
mov dword [eax + 4], 0
mov byte [eax], 0x4b
jmp 0x42a220
movzx edx, cl
mov ecx, dword [esp]
push esi
push edi
push ebx
push eax
push dword [ebp + 0x14]
jmp 0x42a1d2
mov edx, ebx
movzx ebx, cl
lea ecx, [esp + 0x10]
push ebx
push eax
call fcn.0042a770
add esp, 8
movzx eax, byte [esp + 0x10]
cmp al, 0x4b
jne 0x42a1dc
mov ecx, dword [esp]
mov edx, ebx
push esi
push edi
push dword [ebp + 0x18]
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.0042a290
add esp, 0x14
jmp 0x42a220
movzx ecx, byte [esp + 0x13]
mov edx, dword [esp]
movzx edi, word [esp + 0x11]
mov esi, dword [esp + 0x14]
movsd xmm0, qword [esp + 0x18]
mov byte [edx + 3], cl
mov word [edx + 1], di
mov byte [edx], al
mov dword [edx + 4], esi
movsd qword [edx + 8], xmm0
jmp 0x42a220
mov edx, dword [esp]
movzx eax, byte [esp + 6]
movzx esi, word [esp + 4]
mov byte [edx + 3], al
mov word [edx + 1], si
mov byte [edx], 0x37
mov dword [edx + 4], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
sub eax, ecx
xor ecx, ecx
cmp byte [edx + 0xc9], 8
mov dword [esp + 8], edx
mov edi, eax
sete cl
shl ecx, 3
add ecx, dword [edx + 0xcc]
mov edx, dword [edx + 0xc4]
sub ecx, edx
add ecx, 4
sub edi, ecx
jb 0x42a274
cmp edi, edx
jae 0x42a274
mov edi, dword [esp + 0x24]
mov ecx, dword [esp]
mov edx, 1
add edi, 8
push esi
push edi
push ebx
push eax
push dword [esp + 0x18]
jmp 0x42a1d2
mov ecx, eax
jmp 0x42a159
mov ecx, edi
push 0x8f0a68
call fcn.00403c50
add esp, 4
ud2
Function at 0x42b260
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov ebx, dword [edx + 8]
mov dword [esp], ecx
mov eax, dword [edx]
mov ecx, dword [edx + 4]
cmp dword [ebx], 0
je 0x42b284
mov edi, dword [ebx + 0xc]
mov ebx, dword [ebx + 4]
jmp 0x42b293
mov edi, dword [ebx + 4]
cmp edi, 6
jae 0x42b3f8
add ebx, 8
test edi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
je 0x42b36a
nop
dec edi
add ebx, 0x10
cmp edi, 0xffffffff
je 0x42b383
lea eax, [ebx - 0x10]
lea ecx, [esp + 0x20]
lea esi, [esp + 0x38]
lea edx, [esp + 0xc]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
mov eax, dword [esp + 0x1c]
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x38], xmm0
mov eax, dword [eax + 0xc]
push esi
push dword [eax + 0x20]
call fcn.00426930
add esp, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, eax
xor edx, 0x2e
or edx, ecx
je 0x42b3af
lea esi, [esp + 0x32]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov esi, dword [esi]
mov dword [esp + 4], esi
lea esi, [esp + 0x32]
movzx esi, word [esi + 4]
mov word [esp + 8], si
movzx esi, word [esp + 0x30]
cmp si, word [ebp + 8]
mov esi, dword [esp + 0x2c]
jne 0x42b2b0
movzx edi, word [esp + 8]
mov ebx, dword [esp]
mov word [ebx + 0x16], di
mov edi, dword [esp + 4]
mov dword [ebx + 0x12], edi
mov dword [ebx + 4], ecx
movzx ecx, word [ebp + 8]
mov dword [ebx], eax
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], esi
mov word [ebx + 0x10], cx
jmp 0x42b3f0
cmp dword [edx + 0x14], 0
mov eax, dword [esp]
jne 0x42b3a0
mov dword [edx + 0x14], 1
mov dword [edx + 0x18], 0
jmp 0x42b3a0
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x14], 0
jne 0x42b39d
mov ecx, dword [esp + 0xc]
sub ecx, dword [eax]
mov dword [eax + 0x14], 1
mov dword [eax + 0x18], ecx
mov eax, dword [esp]
mov dword [eax + 4], 0
mov dword [eax], 0x2e
jmp 0x42b3f0
lea edx, [esp + 0x32]
mov ecx, dword [esp]
mov edi, dword [esp + 0x2c]
mov esi, dword [edx]
movzx eax, word [edx + 4]
movzx edx, word [esp + 0x30]
mov dword [esp + 4], esi
mov dword [ecx + 0x12], esi
mov esi, dword [esp + 0x28]
mov word [ecx + 0x16], ax
mov word [esp + 8], ax
mov dword [ecx + 0xc], edi
mov dword [ecx + 8], esi
mov word [ecx + 0x10], dx
mov dword [ecx + 4], 0
mov dword [ecx], 0x2f
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edi
mov edx, 5
push 0x8ef9dc
call fcn.00404300
add esp, 4
ud2
Function at 0x441410
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.0043be50
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.0043be50
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x441470
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x8fab10]
test esi, esi
jle 0x441590
mov eax, dword [0x8fab14]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4414a4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x441527
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x441490
mov dword [esp], ebx
call fcn.00441e60
mov edi, eax
test eax, eax
je 0x4415b7
mov eax, dword [0x8fab14]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00441fa0
mov edx, dword [0x8fab14]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x441597
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x441520
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x441530
add dword [0x8fab10], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x8fab14]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x441520
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00441410
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4414ae
mov eax, dword [0x8fab14]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00441410
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00441410
lea esi, [esi]
nop
Function at 0x441ad0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x8fab2c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x8fab24]
sub esp, 4
test ebx, ebx
je 0x441b25
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x441b1e
test esi, esi
je 0x441b1e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x441b00
mov dword [esp], 0x8fab2c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x441e60
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x441e85
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x441e90
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x441e85
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x441ed8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x441ece
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x441eda
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x441ec0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x10017d7f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x100684f0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x100a9cf8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x1006853b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.10068906
test al, al
jne 0x10068535
sub edx, 2
cmp edx, edi
jne 0x1006851b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x1006855d
lea eax, [edi + 2]
cmp edx, eax
je 0x1006855d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.100681b7
add esp, 0x10
jmp 0x10068657
push esi
lea ecx, [ebp - 0x255]
call fcn.10068906
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100685a0
push dword [ebp - 0x25c]
jmp 0x1006854d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x100685dd
cmp word [ebp - 0x226], 0
je 0x100685fe
cmp word [ebp - 0x226], ax
jne 0x100685dd
cmp word [ebp - 0x224], 0
je 0x100685fe
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.100681b7
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x1006864a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x100685b7
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x10068632
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x10068657
push 0x10067c07
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.100752b0
add esp, 0x10
jmp 0x10068627
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10015b84
leave
ret
Function at 0x10069fe6
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 0x1006a083
push ebx
push esi
call fcn.10069fa2
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.10069e94
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1006a030
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1006a082
push edi
push eax
call fcn.100678e5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1006a050
call fcn.100677f4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1006a081
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10069e94
add esp, 0x20
test eax, eax
jne 0x1006a06f
push edi
call fcn.100677f4
jmp 0x1006a077
push ebx
call fcn.100677f4
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 0x1006a086
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1006a097
pop esi
ret
push ebx
push edi
push esi
call fcn.10069fa2
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100678e5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1006a0bf
push ebx
push esi
push edi
call fcn.10037880
add esp, 0xc
push 0
call fcn.100677f4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1006a9a0
Capabilities:
Set environment variable

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

Function at 0x1006b352
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1009c304
push 0x1009c2fc
push str.FlsAlloc
push 0x1e
call fcn.1006b022
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006b386
push dword [ebp + 8]
mov ecx, esi
call dword [0x1008d1f0]
call esi
jmp 0x1006b38c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1006b3d0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1009c314
push 0x1009c30c
push str.FlsGetValue
push 0x20
call fcn.1006b022
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006b407
push dword [ebp + 8]
mov ecx, esi
call dword [0x1008d1f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1007b39c
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 + 0x100ad4d8]
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 0x1007b3dc
cmp byte [ebx], 0xa
jne 0x1007b3dc
or byte [eax + edi + 0x28], 4
jmp 0x1007b3e1
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1007b4df
mov al, byte [edx]
cmp al, 0x1a
je 0x1007b4c1
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1007b410
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1007b435
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1007b43f
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 0x1007b3f2
jmp 0x1007b4df
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 0x1007b4bc
cmp dword [ebp - 0xc], 0
je 0x1007b4bc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x100ad4d8]
test byte [eax + edi + 0x28], 0x48
je 0x1007b496
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1007b481
mov byte [esi], dl
jmp 0x1007b492
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100ad4d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1007b4df
cmp byte [ebp - 1], 0xa
jne 0x1007b4a5
cmp esi, ebx
jne 0x1007b4a5
mov byte [esi], 0xa
jmp 0x1007b4de
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1007b1ee
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1007b4df
mov byte [esi], 0xd
jmp 0x1007b4de
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x100ad4d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1007b4db
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1007b4df
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1007b4e8
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 + 0x100ad4d8]
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 0x1007b52b
cmp word [esi], dx
jne 0x1007b52b
or byte [edi + eax + 0x28], 4
jmp 0x1007b530
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 0x1007b669
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 0x1007b649
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1007b572
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1007b5a8
cmp eax, edx
jae 0x1007b5b4
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 0x1007b54a
jmp 0x1007b669
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 0x1007b645
cmp dword [ebp - 0x14], 0
je 0x1007b645
mov eax, dword [ebx*4 + 0x100ad4d8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1007b61d
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x1007b663
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x100ad4d8]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x100ad4d8]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x100ad4d8]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x1007b666
pop ebx
cmp word [ebp - 4], bx
jne 0x1007b62e
cmp esi, dword [ebp + 0xc]
jne 0x1007b62e
mov word [esi], bx
jmp 0x1007b666
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1007b1ee
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1007b669
push 0xd
jmp 0x1007b662
mov ecx, dword [ebx*4 + 0x100ad4d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1007b660
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1007b669
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 0x1007f199
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007f06d
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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

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