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

Disassembly:
push 0x58
mov eax, 0x2a982d88
call fcn.2a84a73f
mov edi, ecx
xor ebx, ebx
lea eax, [ebp - 0x30]
push 0x14
push ebx
push eax
mov dword [ebp - 0x10], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_CreateEventA]
mov esi, eax
mov dword [ebp - 0x14], esi
mov eax, dword [edi + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], ebx
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
cmp esi, 0xffffffff
je 0x2a856a94
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x2a856a7e
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x2a856a63
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
sub eax, ebx
je 0x2a856a2b
sub eax, 1
jne 0x2a8569d5
lea ecx, [ebp - 0x64]
call fcn.2a85607f
push 0x2a9f04c4
jmp 0x2a856ab9
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
jne 0x2a856a7e
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x6d
je 0x2a856a19
push ebx
push 0xffffffffffffffff
push str.unexpected_error
lea ecx, [ebp - 0x48]
call fcn.2a84a6ed
mov byte [ebp - 4], 2
jmp 0x2a856aa8
cmp eax, 0x6d
je 0x2a856a19
push ebx
push 0xffffffffffffffff
push str.Read_Error
lea ecx, [ebp - 0x48]
call fcn.2a84a6ed
mov byte [ebp - 4], 3
jmp 0x2a856aa8
push esi
mov dword [ebp - 4], 4
call dword [sym.imp.kernel32.dll_CloseHandle]
call fcn.2a84aa52
ret 8
push ebx
push 0xffffffffffffffff
push str.Failed_to_create_connection
lea ecx, [ebp - 0x48]
call fcn.2a84a6ed
mov byte [ebp - 4], 1
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x64]
call fcn.2a880f1b
push 0x2a9f04a8
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x2a856af3
Capabilities:
Write file on windows

Disassembly:
push 0x74
mov eax, 0x2a982dbb
call fcn.2a84a73f
mov edi, ecx
cmp dword [edi + 4], 0xffffffff
je 0x2a856c2d
xor ebx, ebx
lea eax, [ebp - 0x30]
push 0x14
push ebx
push eax
mov dword [ebp - 0x10], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_CreateEventA]
mov esi, eax
mov dword [ebp - 0x14], esi
mov eax, dword [edi + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], ebx
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x18], eax
cmp esi, 0xffffffff
jne 0x2a856b6f
push ebx
push esi
push str.Failed_to_create_connection
lea ecx, [ebp - 0x48]
call fcn.2a84a6ed
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x64]
call fcn.2a880f1b
push 0x2a9f04a8
jmp 0x2a856c3a
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x2a856bc4
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x2a856bda
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
sub eax, ebx
je 0x2a856bb1
sub eax, 1
jne 0x2a856b6f
jmp 0x2a856c2d
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
push esi
mov dword [ebp - 4], 3
call dword [sym.imp.kernel32.dll_CloseHandle]
call fcn.2a84aa52
ret 8
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xe8
je 0x2a856c1e
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xe9
je 0x2a856c1e
push ebx
push 0xffffffffffffffff
push str.Connection_Closed
lea ecx, [ebp - 0x48]
call fcn.2a84a6ed
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x80]
call fcn.2a880f1b
push 0x2a9f04a8
lea eax, [ebp - 0x80]
jmp 0x2a856c3d
lea ecx, [ebp - 0x80]
call fcn.2a85607f
push 0x2a9f04c4
jmp 0x2a856c19
lea ecx, [ebp - 0x64]
call fcn.2a85607f
push 0x2a9f04c4
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x2a86a5f1
Capabilities:
Encode data using base64

Disassembly:
push 0x14
mov eax, 0x2a9840b2
call fcn.2a84a73f
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], 0xf
mov byte [eax], bl
mov eax, dword fs:[0x2c]
xor edi, edi
mov ecx, dword [0x2aa01180]
inc edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x2a9ffcec]
cmp eax, dword [ecx + 4]
jg 0x2a86a7a5
mov eax, dword [ebp + 0x10]
mov edi, ebx
test eax, eax
je 0x2a86a797
push 3
pop esi
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
mov byte [ebp + edi - 0x14], al
inc edi
mov dl, byte [ebp - 0x13]
inc ecx
mov dword [ebp + 0xc], ecx
mov ch, byte [ebp - 0x12]
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp edi, esi
jne 0x2a86a6e0
mov esi, dword [ebp + 8]
mov al, cl
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov edi, ebx
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
cmp dword [0x2a9fb0fc], 0x10
mov ecx, 0x2a9fb0e8
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0x2a9fb0e8]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.2a880f1b
inc edi
cmp edi, 4
jl 0x2a86a6a8
mov dl, byte [ebp - 0xd]
mov edi, ebx
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
push 3
pop esi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x2a86a64a
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x2a86a797
mov eax, edi
cmp edi, esi
jge 0x2a86a716
cmp eax, esi
jae 0x2a86a7a0
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, esi
jl 0x2a86a6fe
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [edi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x2a86a782
mov esi, dword [ebp + 8]
mov edi, eax
cmp dword [0x2a9fb0fc], 0x10
mov ecx, 0x2a9fb0e8
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x2a9fb0e8]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.2a880f1b
inc ebx
cmp ebx, edi
jl 0x2a86a753
mov edi, dword [ebp - 0x1c]
push 3
pop esi
cmp edi, esi
jge 0x2a86a797
sub esi, edi
mov ecx, dword [ebp + 8]
push 0x3d
call fcn.2a880f1b
sub esi, 1
jne 0x2a86a788
mov eax, dword [ebp + 8]
call fcn.2a84aa52
ret
call fcn.2a880f1b
mov esi, 0x2a9ffcec
push esi
call fcn.2a880f1b
cmp dword [0x2a9ffcec], 0xffffffff
pop ecx
jne 0x2a86a63a
push 0x2a98b078
mov ecx, 0x2a9fb0e8
mov dword [ebp - 4], edi
call fcn.2a84e949
push 0x2a987df0
call fcn.2a880f1b
push esi
mov byte [ebp - 4], bl
call fcn.2a880f1b
pop ecx
pop ecx
jmp 0x2a86a63a
Function at 0x2a8760be
Capabilities:
Encode data using base64

Disassembly:
push 0x14
mov eax, 0x2a985659
call fcn.2a84a73f
mov edi, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], edi
cmp dword [edi + 0x14], 0x10
jb 0x2a8760e0
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp + 8]
mov ebx, dword [edi + 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], esi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 0xf
mov byte [esi], cl
push ecx
mov eax, ebx
mov dword [ebp - 4], ecx
shl eax, 2
push 3
pop ecx
cdq
idiv ecx
mov dword [ebp - 0x1c], 1
add eax, ecx
mov ecx, esi
push eax
call fcn.2a880f1b
cmp dword [esi + 0x14], 0x10
mov edx, esi
jb 0x2a876122
mov edx, dword [esi]
xor ecx, ecx
test ebx, ebx
jle 0x2a8761d3
mov esi, dword [ebp - 0x14]
movzx eax, byte [esi + ecx]
shr eax, 2
mov al, byte [eax + 0x2a98cc18]
mov byte [edx], al
mov bl, byte [esi + ecx]
and bl, 3
shl bl, 4
inc ecx
cmp ecx, dword [ebp - 0x10]
jge 0x2a876155
mov al, byte [esi + ecx]
shr al, 4
or bl, al
movzx eax, bl
mov al, byte [eax + 0x2a98cc18]
mov byte [edx + 1], al
mov eax, dword [ebp - 0x10]
cmp ecx, eax
jge 0x2a876196
cmp dword [edi + 0x14], 0x10
mov ebx, edi
jb 0x2a876172
mov ebx, dword [edi]
mov bl, byte [ebx + ecx]
and bl, 0xf
shl bl, 2
inc ecx
cmp ecx, eax
jge 0x2a876188
mov al, byte [esi + ecx]
shr al, 6
or bl, al
movzx eax, bl
mov bl, byte [eax + 0x2a98cc18]
mov eax, dword [ebp - 0x10]
jmp 0x2a876198
mov bl, 0x3d
lea esi, [edx + 3]
mov byte [edx + 2], bl
mov dword [ebp - 0x18], esi
mov edx, esi
mov esi, dword [ebp - 0x14]
inc edx
cmp ecx, eax
jge 0x2a8761bd
movzx eax, byte [esi + ecx]
and eax, 0x3f
mov bl, byte [eax + 0x2a98cc18]
mov eax, dword [ebp - 0x10]
jmp 0x2a8761bf
mov bl, 0x3d
mov esi, dword [ebp - 0x18]
inc ecx
mov byte [esi], bl
mov esi, dword [ebp - 0x14]
cmp ecx, eax
jl 0x2a87612f
mov esi, dword [ebp - 0x20]
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x2a8761dd
mov eax, dword [esi]
push 0
sub edx, eax
mov ecx, esi
push edx
call fcn.2a880f1b
mov eax, esi
call fcn.2a84aa52
ret

Function at 0x2a878715
Capabilities:
Get hostname

Disassembly:
push 0x448
mov eax, 0x2a985ae9
call fcn.2a8ca9a7
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x410]
mov edi, 0x400
mov dword [ebp - 0x450], esi
push edi
xor ebx, ebx
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x410]
push edi
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x2a878779
lea eax, [ebp - 0x410]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov ecx, esi
push eax
mov byte [esi], bl
call fcn.2a84e949
mov eax, esi
call fcn.2a8ca985
ret
push 0x93
lea ecx, [ebp - 0x454]
call fcn.2a880f1b
lea ecx, [ebp - 0x44c]
mov dword [ebp - 4], ebx
push ecx
mov ecx, eax
call fcn.2a86a7ea
push eax
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 1
call fcn.2a869ec4
push 0x2a9f32e4
lea eax, [ebp - 0x434]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x2a87df87
Capabilities:
Get socket status

Disassembly:
push 0x198
mov eax, 0x2a986702
call fcn.2a8ca9a7
mov eax, dword [ecx + 0x10004]
xor esi, esi
mov dword [ebp - 0x194], 0x1e
mov dword [ebp - 0x190], esi
cmp eax, 0xffffffff
je 0x2a87dff3
lea ecx, [ebp - 0x194]
mov dword [ebp - 0x188], eax
push ecx
inc eax
mov dword [ebp - 0x18c], 1
lea ecx, [ebp - 0x18c]
push esi
cmp dword [ebp + 8], esi
jne 0x2a87dfdb
push esi
push ecx
jmp 0x2a87dfdd
push ecx
push esi
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x2a87e02b
mov al, al
call fcn.2a8ca985
ret 4
push 0x92
lea ecx, [ebp - 0x1a4]
call fcn.2a880f1b
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], esi
push ecx
mov ecx, eax
call fcn.2a86a7ea
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.2a880f1b
push 0x2a9f531c
lea eax, [ebp - 0x58]
jmp 0x2a87e05f
push 0x77
lea ecx, [ebp - 0x19c]
call fcn.2a880f1b
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.2a86a7ea
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.2a880f1b
push 0x2a9f531c
lea eax, [ebp - 0x34]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x2a8bcfd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.2a8cb5a0
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x18]
inc ebp
push edi
mov edi, dword [esp + 0x20]
mov eax, dword [esi + 4]
mov ecx, dword [edi + 8]
mov eax, dword [eax + 0x64]
test byte [eax + 0x30], 1
je 0x2a8bd05a
mov edx, dword [esp + 0x24]
lea eax, [edx + ebp]
cmp eax, ecx
ja 0x2a8bd05e
add dword [edi + 0x14], edx
sub ecx, edx
add dword [edi + 0x18], edx
sub dword [edi + 0xc], edx
mov dword [edi + 8], ecx
mov eax, dword [edi + 0x14]
push ebx
push dword [esi + 0x3c8]
mov al, byte [eax + ecx - 1]
movzx ebx, al
mov byte [esp + 0x30], al
mov dword [esp + 0x24], ebx
call fcn.2a894ac0
push eax
call fcn.2a8cdea0
mov esi, dword [edi + 8]
add esp, 8
mov dword [esp + 0x18], esi
and eax, 0x200000
je 0x2a8bd067
sub esi, ebx
mov eax, 1
dec esi
pop ebx
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
add esp, 0xc
ret
cmp ebp, ecx
jbe 0x2a8bd012
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
lea ecx, [ebx + ebp]
mov eax, esi
mov ebx, esi
xor eax, ecx
sub ebx, ecx
xor ebx, ecx
or ebx, eax
mov eax, 0x100
xor ebx, esi
shr ebx, 0x1f
dec ebx
cmp esi, eax
cmovb eax, esi
xor ebp, ebp
mov dword [esp + 0x14], eax
test eax, eax
je 0x2a8bd0e4
mov eax, dword [esp + 0x20]
dec esi
mov edi, dword [edi + 0x14]
shr eax, 0x1f
add edi, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x10]
lea edi, [edi - 1]
mov edx, esi
mov ecx, ebp
sub edx, ebp
shr ecx, 0x1f
shr edx, 0x1f
xor al, cl
xor dl, cl
inc ebp
movzx ecx, byte [esp + 0x2c]
or dl, al
movzx eax, byte [edi + 1]
dec dl
movzx edx, dl
xor ecx, eax
and edx, ecx
not edx
and ebx, edx
cmp ebp, dword [esp + 0x14]
jb 0x2a8bd0a5
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
not ebx
movzx ecx, bl
inc eax
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub esi, eax
mov eax, ecx
pop ebx
mov dword [edi + 8], esi
and eax, 1
pop edi
not ecx
pop esi
or eax, ecx
pop ebp
add esp, 0xc
ret

Function at 0x2a8ca80f
Capabilities:
Create process on windows

Disassembly:
push 0x48
mov eax, 0x2a987d7c
call fcn.2a84a73f
mov edi, ecx
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x54]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
push 0x10
mov dword [ebp - 0x54], esi
call fcn.2a880f1b
mov esi, eax
add esp, 0x10
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], ebx
test esi, esi
je 0x2a8ca854
push 0x10
push ebx
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x2a8ca856
mov esi, ebx
or dword [ebp - 4], 0xffffffff
mov ecx, edi
mov dword [edi + 0x24], esi
call fcn.2a8c9bfd
push dword [edi + 0x24]
lea ecx, [ebp - 0x54]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.kernel32.dll_CreateProcessW]
call fcn.2a84aa52
ret
Function at 0x2a8e9c90
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.2a880f1b
push 0x62
push esi
mov edi, eax
mov ebx, 1
call sub.VCRUNTIME140.dll_strchr
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x2a8e9d35
push 0x48
push str.crypto_bio_bss_file.c
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push 1
push 2
call fcn.2a8d0840
push 0x2a9916a4
push esi
push 0x2a9b39b8
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.2a8cff50
add esp, 0x2c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 2
je 0x2a8e9d12
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 6
je 0x2a8e9d12
lea eax, [edi + 2]
lea ecx, [edi + 0x51]
jmp 0x2a8e9d1c
mov eax, 0x80
mov ecx, 0x4f
push ecx
push str.crypto_bio_bss_file.c
push eax
push 0x6d
push 0x20
call fcn.2a8d0840
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x2a9b3960
call fcn.2a8ce250
mov esi, eax
add esp, 4
test esi, esi
jne 0x2a8e9d57
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.2a8cdbf0
push edi
push ebx
push 0x6a
push esi
call fcn.2a8cdc20
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x29a01815
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x29a169b8]
jne 0x29a0181f
repz ret
jmp fcn.29a0e56f

Function at 0x29a0b79d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x29a0b7ac
pop dword [ebp - 0x28]
mov eax, 0x17b64177
add eax, 0x11ea7635
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xdc209079
add dword [ebp - 0x38], 0x7231b4d2
mov dword [ebp - 0x34], 0x40c4e15b
add dword [ebp - 0x34], 0xf16e6aea
mov dword [ebp - 0x30], 0xd4c68458
sub dword [ebp - 0x30], 0x887a402a
mov dword [ebp - 0x2c], 0x7819c1a4
add dword [ebp - 0x2c], 0x87e63e5c
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], 0x4928baf2
sub dword [ebp - 0x38], 0xd4b6519c
mov dword [ebp - 0x34], 0x8a1aff22
add dword [ebp - 0x34], 0xb7516253
mov dword [ebp - 0x30], 0xdc18428
add dword [ebp - 0x30], 0x55ade844
mov dword [ebp - 0x2c], 0x9e87528c
add dword [ebp - 0x2c], 0x6178ad74
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0xe7901ff8
sub eax, 0xbdef1f5c
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3e0a5
push 0
call eax
mov ecx, 0x5a89
xor esi, esi
add esi, eax
mov edi, 0xc5cfa73b
add edi, 0x63d246c5
add edi, dword [ebp - 0x28]
mov ebx, 0x7dfe88ff
sub ebx, 0x306d4c88
mov edx, dword [edi]
xor dword [ebp - 0x18], esi
sub edx, ebx
sub dword [ebp - 0x14], 0x6d840405
mov dword [esi], edx
xor dword [ebp - 0x20], edi
add esi, 0x92e24072
add esi, 0x6d1dbf92
add edi, 0x74f6f5ba
add edi, 0x8b090a4a
loop 0x29a0b8c5
add eax, 0x11af602a
add eax, 0xee51fccd
xor ebx, ebx
add ebx, eax
add eax, 0x88741a25
add eax, 0x778be5e0
mov ecx, 0x53b14fa7
add ecx, 0xd5eeb059
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
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, 0x1e02b461
add eax, 0xe23d779f
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xb1d3a28c
sub dword [ebp - 0x38], 0x63815d41
mov dword [ebp - 0x34], 0xec9639f2
add dword [ebp - 0x34], 0x459d1253
mov dword [ebp - 0x30], 0xe7badbcc
sub dword [ebp - 0x30], 0x9b6e979e
mov dword [ebp - 0x2c], 0xb0c86710
add dword [ebp - 0x2c], 0x4f3798f0
lea eax, [ebp - 0x38]
push eax
mov eax, 0x8bd7f2e9
add eax, 0x74688da3
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x43767b9a
add dword [ebp - 0x38], 0x30fbedbc
mov dword [ebp - 0x34], 0x977b1124
add dword [ebp - 0x34], 0xa9f15051
mov dword [ebp - 0x30], 0x55dd413a
add dword [ebp - 0x30], 0xd922b32
mov dword [ebp - 0x2c], 0x6e92a453
add dword [ebp - 0x2c], 0x916d5bad
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x175de3f3
sub eax, 0x171d631f
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x35b26
push 0
call eax
mov ecx, 0x4408
xor edx, edx
add edx, eax
mov edi, 0xa37750ae
add edi, 0x5cc9bf52
add edi, dword [ebp - 0x28]
mov esi, 0x22fd1e3d
sub dword [ebp - 0x18], edi
mov ebx, dword [edi]
xor dword [ebp - 0x14], ecx
xor ebx, esi
sub dword [ebp - 0xc], 0xa41b8ea4
mov dword [edx], ebx
add edx, 4
add edi, 0x630b9870
sub edi, 0x630b986c
loop 0x402d18
add eax, 0x53d3714d
add eax, 0xac2d91a6
mov ebx, eax
add eax, 0x3345a835
sub eax, 0x3345a830
mov ecx, 0x661af71f
add ecx, 0x9a2508e1
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x412bdb
Capabilities:
Read file on windows

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

Function at 0x416f3f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004168ad

Function at 0x416f4a
Capabilities:
Set environment variable

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

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 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.10009830
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10009830
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.10009830
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.10009830
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.10009830
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.10009830
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.10009830
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.10009830
push 0xd008
push edi
call fcn.10009830
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.10009830
int3

Function at 0x10009830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x1000983f
pop dword [ebp - 0x28]
mov eax, 0x1000983f
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x380d3
push 0
mov eax, 0xc968599d
sub eax, 0xb9671939
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x2c3e8bb5
add ecx, 0xd3c1b87e
xor ebx, ebx
add ebx, eax
mov edi, 0x10018600
add edi, dword [ebp - 0x28]
mov edx, 0x3caca9df
add edx, 0xc277f413
add dword [ebp - 4], esi
mov esi, dword [edi]
xor dword [ebp - 0x18], 0x70428d5b
xor esi, edx
add dword [ebp - 0x18], 0xb3049c7
mov dword [ebx], esi
xor dword [ebp - 0x18], 0x3de6a1d6
add ebx, 4
add edi, 0x1464490f
sub edi, 0x1464490b
loop 0x10009895
add eax, 0x1039f
mov ebx, eax
add eax, 5
mov ecx, 0xbcd1a866
sub ecx, 0xacd1a866
add ecx, dword [ebp - 0x28]
call ebx
leave
ret