joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4330ca
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 0x433167
push ebx
push esi
call fcn.00433093
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.00430406
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x433114
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x433166
push edi
push eax
call fcn.0042b1ef
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x433134
call fcn.0042b1b5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x433165
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00430406
add esp, 0x20
test eax, eax
jne 0x433153
push edi
call fcn.0042b1b5
jmp 0x43315b
push ebx
call fcn.0042b1b5
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 0x43316a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x43317b
pop esi
ret
push ebx
push edi
push esi
call fcn.00433093
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042b1ef
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4331a3
push ebx
push esi
push edi
call fcn.004168e0
add esp, 0xc
push 0
call fcn.0042b1b5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4338fd
Capabilities:
Set environment variable

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

Function at 0x4358db
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042c5f5
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x43594a
cmp esi, dword [ebp - 4]
je 0x435945
cmp dword [ebp + 0xc], 0
je 0x435945
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x435922
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0043542d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x43594c
xor eax, eax
inc eax
jmp 0x43594c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4359b1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0042c5f5
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0042c5f5
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x435a28
cmp word [ecx], dx
je 0x435a28
mov eax, dword [0x442b8c]
push edi
dec eax
push eax
push 0x442a78
call fcn.00435950
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x435a9b
cmp word [eax], dx
je 0x435a9b
mov eax, dword [edi]
test eax, eax
je 0x435a4c
cmp word [eax], dx
je 0x435a4c
lea eax, [ebp - 0x10]
push eax
call fcn.00435333
jmp 0x435a55
lea eax, [ebp - 0x10]
push eax
call fcn.004353ce
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x435ac5
mov eax, dword [0x442a74]
push dword [ebp - 0x14]
dec eax
push eax
push 0x442768
call fcn.00435950
add esp, 0xc
test al, al
je 0x435ac5
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x435a90
cmp word [eax], di
je 0x435a90
lea eax, [ebp - 0x10]
push eax
call fcn.00435333
pop ecx
jmp 0x435ac7
lea eax, [ebp - 0x10]
push eax
call fcn.004353ce
jmp 0x435a8d
mov eax, dword [edi]
test eax, eax
je 0x435ab2
cmp word [eax], dx
je 0x435ab2
lea eax, [ebp - 0x10]
push eax
call fcn.004352e8
pop ecx
jmp 0x435ac5
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x435b90
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004357d5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x435b90
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x435b90
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x435b90
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x435b1d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0042d1e5
test ebx, ebx
je 0x435b8b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0042d1e5
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x435b90
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x435b90
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0043acf6
add esp, 0x10
xor eax, eax
inc eax
jmp 0x435b92
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413b45
leave
ret
Function at 0x43b2f5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0043b271
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43b464
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43b464
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43b419
jg 0x43b351
test eax, eax
je 0x43b40f
push 1
push 0x1000
call fcn.0042b158
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x43b374
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x43b406
push 0x8000
push ebx
call fcn.00428652
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x43b39d
jg 0x43b398
cmp ecx, 0x1000
jb 0x43b39d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042e5fd
add esp, 0x10
cmp eax, 0xffffffff
je 0x43b3e2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x43b398
jl 0x43b3c9
test ecx, ecx
jne 0x43b38a
push dword [ebp - 0xc]
push ebx
call fcn.00428652
push esi
call fcn.0042b1b5
add esp, 0xc
xor ebx, ebx
jmp 0x43b472
cmp byte [edi + 0x24], 0
je 0x43b3f9
cmp dword [edi + 0x20], 5
jne 0x43b3f9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x43b404
mov ebx, dword [edi + 0x18]
jmp 0x43b406
xor ebx, ebx
push esi
call fcn.0042b1b5
pop ecx
jmp 0x43b472
test ecx, ecx
jg 0x43b3db
jl 0x43b419
test eax, eax
jae 0x43b3db
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042fda5
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43b439
cmp byte [edi + 0x1c], 0
je 0x43b3db
jmp 0x43b46a
push ebx
call fcn.0042ee23
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43b3db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x43b472
cmp byte [edi + 0x1c], 0
je 0x43b46f
mov ebx, dword [edi + 0x18]
jmp 0x43b472
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042fda5
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43ca30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43ca5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43ca5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x5ff0f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x55f015
lea edi, [esi - 0x15e015]
mov dword [edi + 0x189080], 0x5070790
push edi
or ebp, 0xffffffff
jmp 0x5ff11a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5ff121
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5ff110
mov eax, 1
add ebx, ebx
jne 0x5ff133
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5ff144
jne 0x5ff163
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5ff163
dec eax
add ebx, ebx
jne 0x5ff150
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5ff128
add ebx, ebx
jne 0x5ff15f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5ff1b5
xor ecx, ecx
sub eax, 3
jb 0x5ff17b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5ff1ea
sar eax, 1
mov ebp, eax
jmp 0x5ff186
add ebx, ebx
jne 0x5ff186
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5ff154
inc ecx
add ebx, ebx
jne 0x5ff194
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5ff154
add ebx, ebx
jne 0x5ff1a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5ff196
jne 0x5ff1b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5ff196
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5ff1d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5ff1c6
jmp 0x5ff116
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5ff1d4
add edi, ecx
jmp 0x5ff116
pop esi
mov edi, esi
mov ecx, 0x8721
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5ff1f2
cmp byte [edi], 0x1a
jne 0x5ff1f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5ff1f7
lea edi, [esi + 0x1fc000]
mov eax, dword [edi]
or eax, eax
je 0x5ff266
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x202214]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2022f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5ff224
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2022f4]
or eax, eax
je 0x5ff260
mov dword [ebx], eax
add ebx, 4
jmp 0x5ff241
call dword [esi + 0x202304]
mov ebp, dword [esi + 0x2022f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x1ff2c1]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5ff2b2
sub esp, 0xffffff80
jmp 0x402d60
Function at 0x403320
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x4033a6
cmp ax, 9
je 0x403394
cmp ax, 0x20
je 0x403394
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp ax, 0x5c
je 0x4033f2
cmp ax, 0x22
je 0x403400
mov dword [ebp - 0x54], 0
add ebx, 2
movzx eax, word [ebx]
test ax, ax
je 0x4033a6
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x403350
test edi, 1
jne 0x403350
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x403394
cmp ax, 0x20
je 0x403394
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x403412
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.wWinMain@16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x40336b
and dword [ebp - 0x54], 1
jne 0x403364
xor edi, 1
jmp 0x40336b
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x4033bf
Function at 0x4023e0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x402402
push 0xce
push str.srchashes_sha2_sha256.c
push str.md___NULL
call fcn.00406ab0
add esp, 0xc
mov dword [esi + 0x28], 0
xor eax, eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0x6a09e667
mov dword [esi + 0xc], 0xbb67ae85
mov dword [esi + 0x10], 0x3c6ef372
mov dword [esi + 0x14], 0xa54ff53a
mov dword [esi + 0x18], 0x510e527f
mov dword [esi + 0x1c], 0x9b05688c
mov dword [esi + 0x20], 0x1f83d9ab
mov dword [esi + 0x24], 0x5be0cd19
pop esi
pop ebp
ret
Function at 0x405780
Capabilities:
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
push ebx
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
sub eax, 2
je 0x40583a
sub eax, 1
je 0x4057ea
sub eax, 1
jne 0x4058ed
movzx eax, byte [ebp - 8]
mov cl, byte [esi + edx*4 + 0x18]
xor cl, byte [eax + 0x42c458]
movzx eax, byte [ebp - 7]
mov bl, byte [eax + 0x42c358]
movzx eax, byte [ebp - 6]
xor bl, byte [esi + edx*4 + 0x19]
mov ch, byte [eax + 0x42c358]
movzx eax, byte [ebp - 5]
xor ch, byte [esi + edx*4 + 0x1a]
mov bh, byte [eax + 0x42c458]
xor bh, byte [esi + edx*4 + 0x1b]
jmp 0x4057f6
mov bh, byte [ebp - 5]
mov ch, byte [ebp - 6]
mov bl, byte [ebp - 7]
mov cl, byte [ebp - 8]
movzx eax, cl
mov cl, byte [esi + edx*4 + 0x10]
xor cl, byte [eax + 0x42c458]
movzx eax, bl
mov byte [ebp - 1], cl
mov bl, byte [eax + 0x42c458]
xor bl, byte [esi + edx*4 + 0x11]
movzx eax, ch
mov al, byte [eax + 0x42c358]
xor al, byte [esi + edx*4 + 0x12]
mov byte [ebp - 2], al
movzx eax, bh
mov bh, byte [ebp - 2]
mov al, byte [eax + 0x42c358]
xor al, byte [esi + edx*4 + 0x13]
mov byte [ebp + 0x17], al
mov al, cl
jmp 0x405849
mov al, byte [ebp - 5]
mov bh, byte [ebp - 6]
mov bl, byte [ebp - 7]
mov byte [ebp + 0x17], al
mov al, byte [ebp - 8]
movzx ecx, byte [esi + edx*4 + 8]
movzx eax, al
movzx eax, byte [eax + 0x42c358]
xor ecx, eax
movzx eax, byte [esi + edx*4]
movzx ecx, byte [ecx + 0x42c358]
xor ecx, eax
movzx eax, byte [ecx + 0x42c458]
mov byte [ebp - 8], al
movzx eax, bl
movzx ecx, byte [eax + 0x42c458]
movzx eax, byte [esi + edx*4 + 9]
xor ecx, eax
movzx eax, byte [esi + edx*4 + 1]
movzx ecx, byte [ecx + 0x42c358]
xor ecx, eax
movzx eax, byte [ecx + 0x42c358]
mov byte [ebp - 7], al
movzx eax, bh
movzx ecx, byte [eax + 0x42c358]
movzx eax, byte [esi + edx*4 + 0xa]
xor ecx, eax
movzx eax, byte [esi + edx*4 + 2]
movzx ecx, byte [ecx + 0x42c458]
xor ecx, eax
movzx eax, byte [ecx + 0x42c458]
mov byte [ebp - 6], al
movzx eax, byte [ebp + 0x17]
movzx ecx, byte [eax + 0x42c458]
movzx eax, byte [esi + edx*4 + 0xb]
xor ecx, eax
movzx eax, byte [esi + edx*4 + 3]
movzx ecx, byte [ecx + 0x42c458]
xor ecx, eax
movzx eax, byte [ecx + 0x42c358]
mov byte [ebp - 5], al
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00405910
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405950
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
push edi
mov edi, 0x42c338
mov dword [ebp - 8], eax
sub edi, ecx
add eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0xc], eax
xor bl, bl
mov dword [ebp - 4], 8
mov byte [eax], 0
nop dword [eax]
movzx eax, byte [edi + esi]
push 0x14d
push eax
movzx eax, byte [esi]
push eax
call fcn.00405690
xor bl, al
lea esi, [esi + 1]
mov eax, dword [ebp - 0xc]
add esp, 0xc
sub dword [ebp - 4], 1
mov byte [eax], bl
jne 0x405980
mov eax, dword [ebp - 8]
add edi, 8
mov ecx, dword [ebp + 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 4
jl 0x405968
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406e90
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
jne 0x406eb1
push 0x25
push str.srcmisc_base64_base64_encode.c
push str.in___NULL
call fcn.00406ab0
add esp, 0xc
cmp dword [ebp + 0x10], 0
jne 0x406ecb
push 0x26
push str.srcmisc_base64_base64_encode.c
push str.out___NULL
call fcn.00406ab0
add esp, 0xc
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x406ee6
push 0x27
push str.srcmisc_base64_base64_encode.c
push str.outlen___NULL
call fcn.00406ab0
add esp, 0xc
mov ebx, dword [ebp + 0xc]
mov eax, 0xaaaaaaab
lea ecx, [ebx + 2]
mul ecx
shr edx, 1
lea edx, [edx*4 + 1]
cmp dword [edi], edx
jae 0x406f0c
mov dword [edi], edx
mov eax, 6
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov eax, 0xaaaaaaab
mov edi, dword [ebp + 0x18]
mul ebx
shr edx, 1
lea eax, [edx + edx*2]
xor edx, edx
mov dword [ebp + 8], edx
test eax, eax
je 0x406f9c
lea edx, [eax - 1]
mov eax, 0xaaaaaaab
mul edx
mov ebx, edx
shr ebx, 1
inc ebx
lea eax, [ebx + ebx*2]
mov dword [ebp + 8], eax
nop dword [eax]
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + edi]
mov byte [ecx], al
movzx edx, byte [esi + 1]
movzx eax, byte [esi]
shl eax, 4
shr edx, 4
add edx, eax
and edx, 0x3f
movzx eax, byte [edx + edi]
mov byte [ecx + 1], al
movzx edx, byte [esi + 2]
movzx eax, byte [esi + 1]
shr edx, 6
lea eax, [edx + eax*4]
and eax, 0x3f
movzx eax, byte [eax + edi]
mov byte [ecx + 2], al
movzx eax, byte [esi + 2]
add esi, 3
and eax, 0x3f
movzx eax, byte [eax + edi]
mov byte [ecx + 3], al
add ecx, 4
sub ebx, 1
jne 0x406f40
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp edx, ebx
jae 0x40703a
movzx eax, byte [esi]
mov dword [ebp + 0xc], eax
lea eax, [edx + 1]
cmp eax, ebx
jae 0x406fb7
movzx edx, byte [esi + 1]
jmp 0x406fb9
xor edx, edx
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
shl esi, 4
movzx eax, byte [eax + edi]
mov byte [ecx], al
mov eax, edx
shr eax, 4
add eax, esi
and eax, 0x3f
movzx eax, byte [eax + edi]
mov byte [ecx + 1], al
add ecx, 2
mov eax, dword [ebp + 8]
inc eax
cmp dword [ebp + 0x1c], 0
je 0x40702d
cmp eax, ebx
jae 0x40700e
and edx, 0xf
movsx eax, byte [edi + edx*4]
mov byte [ecx], al
mov eax, dword [ebp + 0x14]
mov byte [ecx + 1], 0x3d
add ecx, 2
pop edi
pop esi
pop ebx
mov byte [ecx], 0
sub ecx, dword [ebp + 0x10]
mov dword [eax], ecx
xor eax, eax
pop ebp
ret
mov eax, 0x3d
mov byte [ecx], al
mov byte [ecx + 1], al
add ecx, 2
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov byte [ecx], 0
sub ecx, dword [ebp + 0x10]
mov dword [eax], ecx
xor eax, eax
pop ebx
pop ebp
ret
cmp eax, ebx
jae 0x40703a
and edx, 0xf
mov al, byte [edi + edx*4]
mov byte [ecx], al
inc ecx
mov eax, dword [ebp + 0x14]
mov byte [ecx], 0
sub ecx, dword [ebp + 0x10]
pop edi
pop esi
mov dword [eax], ecx
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x40ab60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
mov edx, ecx
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0xc], edx
xor esi, esi
test ecx, ecx
je 0x40ac07
mov eax, dword [ebp + 0x10]
push ebx
dec ecx
mov dword [ebp + 0xc], ecx
test eax, eax
je 0x40ab8f
call eax
mov ecx, 8
dec ecx
mov dword [ebp - 8], ecx
call fcn.0041de8c
mov ebx, eax
call fcn.0041de8c
cmp ebx, eax
jne 0x40abb4
xor esi, 1
call fcn.0041de8c
cmp ebx, eax
je 0x40aba8
call fcn.0041de8c
mov ebx, eax
call fcn.0041de8c
cmp ebx, eax
jne 0x40abd0
xor edi, 1
call fcn.0041de8c
cmp ebx, eax
je 0x40abc4
cmp esi, edi
je 0x40ab98
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
add eax, eax
or eax, esi
mov dword [ebp - 4], eax
test ecx, ecx
jne 0x40ab94
mov ecx, dword [ebp + 8]
mov byte [ecx], al
inc ecx
xor eax, eax
mov dword [ebp + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
test ecx, ecx
jne 0x40ab85
mov eax, dword [ebp - 0xc]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42493d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004245fd
Function at 0x44f320
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x44ff90
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ecx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
vxorps xmm0, xmm0, xmm0
vmovups ymmword [ecx + 4], ymm0
mov dword [ebp - 0x20], ecx
vmovups ymmword [ecx + 0x14], ymm0
push 8
vzeroupper
call fcn.005ce6ca
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0
push 1
call fcn.005cf077
add esp, 4
mov edx, dword [0x607edc]
lea ecx, [edx + 1]
imul ecx, edx
test cl, 1
sete dh
cmp dword [0x607ee0], 0xa
setge dl
setl bl
xor bl, dh
mov esi, dword [ebp - 0x24]
mov dword [esi + 4], eax
mov eax, esi
jne 0x44f3c2
or dl, cl
test dl, 1
je 0x44f3c2
nop word [eax + eax]
jmp 0x44f3c0
mov esi, dword [ebp - 0x20]
mov dword [esi + 0x34], eax
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x28], 0
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x24], 0
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov ecx, esi
push 0
push 0
call fcn.004449b0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x464860
Capabilities:
Initialize winsock library

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x19c
mov eax, dword [0x606180]
xor eax, esp
mov dword [esp + 0x198], eax
mov dword [esp], ecx
mov esi, dword [esp]
mov eax, dword [esp]
mov byte [eax], 0
lea eax, [esp + 8]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [esp + 4], eax
mov edi, 0x3823f7b9
mov ecx, 0x297e5b7c
nop
cmp edi, 0x297e5b7b
jg 0x464910
cmp edi, 0xa04ad7cc
je 0x4649a2
cmp edi, 0xd99fb56b
je 0x464943
cmp edi, 0x1162ae0e
jne 0x4648a0
mov edx, dword [esp]
mov byte [edx], 1
mov edx, dword [0x60a788]
mov ebx, dword [0x60a78c]
lea edi, [edx + 1]
imul edi, edx
mov edx, edi
xor edx, 0xfffffffe
test edx, edi
sete al
cmp ebx, 0xa
setl ah
xor ah, al
mov eax, 0x78965a56
cmovne eax, ecx
test edx, edi
mov edi, eax
cmove edi, ecx
cmp ebx, 0xa
cmovge edi, eax
jmp 0x4648a0
cmp edi, 0x297e5b7c
je 0x464988
cmp edi, 0x78965a56
je 0x464992
cmp edi, 0x3823f7b9
jne 0x4648a0
cmp dword [esp + 4], 0
mov edi, 0xa04ad7cc
mov eax, 0xd99fb56b
cmove edi, eax
jmp 0x4648a0
mov ebp, dword [0x60a788]
mov ebx, dword [0x60a78c]
lea edi, [ebp + 1]
imul edi, ebp
not edi
or edi, 0xfffffffe
cmp edi, 0xffffffff
sete dl
cmp ebx, 0xa
setl dh
xor dh, dl
mov edx, 0x78965a56
mov eax, 0x1162ae0e
cmovne edx, eax
cmp edi, 0xffffffff
mov edi, edx
cmove edi, eax
cmp ebx, 0xa
cmovge edi, edx
jmp 0x4648a0
mov edi, 0xa04ad7cc
jmp 0x4648a0
mov eax, dword [esp]
mov byte [eax], 1
mov edi, 0x1162ae0e
jmp 0x4648a0
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.005ce735
mov eax, esi
add esp, 0x19c
pop esi
pop edi
pop ebx
pop ebp
ret