joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1015ba51
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.1015b9cd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1015bbc0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1015bbc0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1015bb75
jg 0x1015baad
test eax, eax
je 0x1015bb6b
push 1
push 0x1000
call fcn.1014be55
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1015bad0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1015bb62
push 0x8000
push ebx
call fcn.1015b8fe
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1015baf9
jg 0x1015baf4
cmp ecx, 0x1000
jb 0x1015baf9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1014d755
add esp, 0x10
cmp eax, 0xffffffff
je 0x1015bb3e
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 0x1015baf4
jl 0x1015bb25
test ecx, ecx
jne 0x1015bae6
push dword [ebp - 0xc]
push ebx
call fcn.1015b8fe
push esi
call fcn.1014bc8c
add esp, 0xc
xor ebx, ebx
jmp 0x1015bbce
cmp byte [edi + 0x24], 0
je 0x1015bb55
cmp dword [edi + 0x20], 5
jne 0x1015bb55
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1015bb60
mov ebx, dword [edi + 0x18]
jmp 0x1015bb62
xor ebx, ebx
push esi
call fcn.1014bc8c
pop ecx
jmp 0x1015bbce
test ecx, ecx
jg 0x1015bb37
jl 0x1015bb75
test eax, eax
jae 0x1015bb37
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1014e8e9
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1015bb95
cmp byte [edi + 0x1c], 0
je 0x1015bb37
jmp 0x1015bbc6
push ebx
call fcn.101582fa
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1015bb37
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 0x1015bbce
cmp byte [edi + 0x1c], 0
je 0x1015bbcb
mov ebx, dword [edi + 0x18]
jmp 0x1015bbce
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1014e8e9
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1015c120
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1015c14d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1015c14d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405420
Capabilities:
Create http request
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x44506c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push 0
push 0
push str.winnet_http_client_v1.0
mov edi, ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [edi], eax
test eax, eax
jne 0x405464
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414a5e
mov esp, ebp
pop ebp
ret 8
lea ecx, [edi + 0x64]
cmp ecx, 0x4459d0
je 0x40548e
cmp dword [0x4459e4], 0x10
mov eax, 0x4459d0
push dword [0x4459e0]
cmovae eax, dword [0x4459d0]
push eax
call fcn.00401510
push 0x3c
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.00417180
add esp, 0xc
mov dword [ebp - 0x5c], 0x3c
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x24], 1
jb 0x4054d0
mov esi, dword [esi]
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push dword [ebp - 0x48]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x4c]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
call fcn.00401510
lea eax, [ebp - 0x1c]
push eax
lea ecx, [edi + 0xc]
call fcn.00401290
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x405554
mov ecx, dword [ebp - 0x1c]
inc eax
cmp eax, 0x1000
jb 0x40554b
test cl, 0x1f
jne 0x405664
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x405664
sub ecx, eax
cmp ecx, 4
jb 0x405664
cmp ecx, 0x23
ja 0x405664
mov ecx, eax
push ecx
call fcn.00414f7a
add esp, 4
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], 0
push dword [ebp - 0x30]
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
call fcn.00401510
lea eax, [ebp - 0x1c]
push eax
lea ecx, [edi + 0x24]
call fcn.00401290
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x4055c6
mov ecx, dword [ebp - 0x1c]
inc eax
cmp eax, 0x1000
jb 0x4055bd
test cl, 0x1f
jne 0x405664
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x405664
sub ecx, eax
cmp ecx, 4
jb 0x405664
cmp ecx, 0x23
ja 0x405664
mov ecx, eax
push ecx
call fcn.00414f7a
add esp, 4
push dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], 0
push dword [ebp - 0x28]
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
call fcn.00401510
lea eax, [ebp - 0x1c]
push eax
lea ecx, [edi + 0x3c]
call fcn.00401290
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x405628
mov ecx, dword [ebp - 0x1c]
inc eax
cmp eax, 0x1000
jb 0x40561f
test cl, 0x1f
jne 0x405664
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x405664
sub ecx, eax
cmp ecx, 4
jb 0x405664
cmp ecx, 0x23
ja 0x405664
mov ecx, eax
push ecx
call fcn.00414f7a
add esp, 4
mov eax, dword [ebp - 0x50]
mov dword [edi + 0x54], eax
mov ax, word [ebp - 0x44]
mov word [edi + 0x58], ax
lea eax, [edi + 0x3c]
cmp dword [edi + 0x50], 0x10
jb 0x405642
mov eax, dword [edi + 0x3c]
push dword [edi + 0x4c]
lea ecx, [edi + 0x24]
push eax
call fcn.00401600
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00414a5e
mov esp, ebp
pop ebp
ret 8
call fcn.0041e53f
int3
Function at 0x405670
Capabilities:
Connect to http server
Resolve function by parsing pe exports
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432738
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x44506c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x20], 0x10
lea ecx, [edi + 0xc]
jb 0x4056a8
mov ecx, dword [ecx]
movzx eax, word [edi + 0x58]
push 0
push 0
push 3
push 0
push 0
push eax
push ecx
push dword [edi]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edx, eax
mov dword [edi + 4], edx
test edx, edx
jne 0x4056d0
xor eax, eax
jmp 0x405838
cmp dword [edi + 0x54], 4
mov ecx, 0x84083010
mov eax, 0x84883010
cmovne eax, ecx
lea ecx, [edi + 0x24]
mov esi, eax
or esi, 0x200000
cmp byte [edi + 0x5a], 0
cmovne esi, eax
cmp dword [ecx + 0x14], 0x10
jb 0x4056fb
mov ecx, dword [ecx]
cmp dword [edi + 0x78], 0x10
lea eax, [edi + 0x64]
jb 0x405706
mov eax, dword [eax]
push 0
push esi
push 0
push 0
push str.HTTP_1.1
push ecx
push eax
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [edi + 8], eax
test eax, eax
je 0x4056c9
push 4
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 1
push ecx
push 0x41
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov ecx, 0xf
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x5c]
mov esi, dword [eax]
mov dword [ebp - 0x2c], esi
cmp esi, eax
je 0x4057c1
nop
cmp dword [esi + 0x24], 0x10
lea ecx, [esi + 0x10]
jb 0x40576c
mov ecx, dword [esi + 0x10]
push dword [esi + 0x20]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00401600
push 2
push 0x440500
lea ecx, [ebp - 0x28]
call fcn.00401600
cmp dword [esi + 0x3c], 0x10
lea eax, [esi + 0x28]
jb 0x405793
mov eax, dword [esi + 0x28]
push dword [esi + 0x38]
lea ecx, [ebp - 0x28]
push eax
call fcn.00401600
push 1
push 0x440c3c
lea ecx, [ebp - 0x28]
call fcn.00401600
lea ecx, [ebp - 0x2c]
call fcn.0040afb0
mov esi, dword [ebp - 0x2c]
cmp esi, dword [edi + 0x5c]
jne 0x405760
mov ecx, dword [ebp - 0x14]
push 0xa0000000
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push 0xffffffffffffffff
cmovae eax, dword [ebp - 0x28]
push eax
push dword [edi + 8]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x4057e4
xor esi, esi
jmp 0x4057ff
lea ecx, [edi + 0x5c]
call fcn.00408d60
push 0
push 0
push 0
push 0
push dword [edi + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov esi, eax
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x405836
mov edx, dword [ebp - 0x28]
inc ecx
cmp ecx, 0x1000
jb 0x40582d
test dl, 0x1f
jne 0x405856
mov eax, dword [edx - 4]
cmp eax, edx
jae 0x405856
sub edx, eax
cmp edx, 4
jb 0x405856
cmp edx, 0x23
ja 0x405856
mov edx, eax
push edx
call fcn.00414f7a
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414a5e
mov esp, ebp
pop ebp
ret 8
call fcn.0041e53f
int3
Function at 0x405860
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432989
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x44506c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x18], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x40597e
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x405992
push eax
call fcn.0041509c
mov edi, eax
add esp, 4
test edi, edi
je 0x40596f
push dword [ebp - 0x10]
push 0
push edi
call fcn.00417180
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
push edi
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x405933
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_InternetReadFile._n
call fcn.00402690
add esp, 8
jmp 0x405954
xor esi, esi
cmp dword [ebp - 0x10], esi
jbe 0x405951
nop word [eax + eax]
lea eax, [esi + edi]
mov ecx, ebx
push eax
call fcn.00408bd0
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x405940
mov esi, dword [ebp - 0x14]
push edi
call fcn.00414fb0
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x405992
cmp dword [ebp - 0x10], 0
ja 0x4058c0
jmp 0x405992
push str.Out_of_memory_n
call fcn.00402690
add esp, 4
jmp 0x405992
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_InternetQueryDataAvailable._n
call fcn.00402690
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432ce1
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x44506c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], 0
cmp dword [edx + 0x14], 0x10
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1c], ecx
jb 0x407361
mov edx, dword [edx]
mov dword [ebp - 0x14], edx
cmp dword [eax + 0x14], 0x10
jb 0x40736c
mov eax, dword [eax]
mov dword [ebp + 8], eax
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
push esi
mov dword [ebp - 4], 1
call fcn.0041f16b
add esp, 4
push eax
call fcn.0041e5bb
add esp, 4
mov dword [ebp - 0x10], esi
cmp dword [ebp - 0x18], esi
jle 0x4073ef
mov edi, dword [ebp - 0x14]
lea esi, [ebx + 6]
mov ebx, dword [ebp + 8]
call fcn.0041e59a
cdq
idiv esi
mov eax, dword [ebp - 0x10]
mov ecx, edx
movzx eax, byte [edi + eax]
xor eax, ecx
cdq
idiv dword [ebp - 0x1c]
lea esi, [ecx + eax*8]
lea eax, [ebx + edx]
push eax
lea ecx, [ebp - 0x30]
call fcn.00408bd0
lea eax, [ebx + esi]
push eax
lea ecx, [ebp - 0x30]
call fcn.00408bd0
mov eax, dword [ebp - 0x10]
mov esi, 6
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x18]
jl 0x4073a3
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x20]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
cmp dword [edi + 0x14], 0x10
mov eax, edi
mov dword [ebp - 0x24], 1
jb 0x407411
mov eax, dword [edi]
push dword [ebp - 0x2c]
mov ecx, edi
push ebx
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040c3b0
test ebx, ebx
je 0x407452
sub esi, ebx
cmp esi, 0x1000
jb 0x407449
test bl, 0x1f
jne 0x407466
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x407466
sub ebx, eax
cmp ebx, 4
jb 0x407466
cmp ebx, 0x23
ja 0x407466
mov ebx, eax
push ebx
call fcn.00414f7a
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041e53f
int3
Function at 0x408fe0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432e9b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x44506c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x10]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
mov dword [ecx], 0
mov byte [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov byte [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov byte [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov byte [ecx + 0x34], 0
mov dword [ebp - 4], 0
push dword [esi]
mov edx, dword [esi + 8]
push dword [esi + 0xc]
push dword [esi + 4]
push dword [esi]
call fcn.0040c740
add esp, 0x10
test al, al
mov eax, esi
jne 0x4090a2
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40cf70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x40cfa1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x40cf90
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x4152d1
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x443dd0
call fcn.00415a00
push 1
call fcn.00414d78
pop ecx
test al, al
jne 0x415182
push 7
call fcn.00415647
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00414d43
mov byte [ebp - 0x24], al
mov eax, dword [0x4463d0]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x41517b
test eax, eax
jne 0x4151ec
mov dword [0x4463d0], ecx
push 0x4341d8
push 0x4341b4
call fcn.0042164e
pop ecx
pop ecx
test eax, eax
je 0x4151cf
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4152cb
push 0x4341b0
push 0x43417c
call fcn.004215f2
pop ecx
pop ecx
mov dword [0x4463d0], 2
jmp 0x4151f1
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00414ee5
pop ecx
call fcn.00415b62
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x415221
push esi
call fcn.00414e5b
pop ecx
test al, al
je 0x415221
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004152db
call esi
call fcn.00415b68
mov esi, eax
cmp dword [esi], edi
je 0x41523f
push esi
call fcn.00414e5b
pop ecx
test al, al
je 0x41523f
push dword [esi]
call fcn.00420a3d
pop ecx
call fcn.004217ec
mov edi, dword [eax]
call fcn.004217e6
mov esi, eax
call fcn.0042103d
push eax
push edi
push dword [esi]
call main
add esp, 0xc
mov esi, eax
call fcn.00415763
test al, al
jne 0x41526f
push esi
call fcn.00420a75
test bl, bl
jne 0x415278
call fcn.00420a18
push 0
push 1
call fcn.00414f02
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4152cb
call fcn.00415a46
ret
call fcn.00415aaa
jmp 0x415163

Function at 0x4189a0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x4379c0
push 0x4379b8
push str.FlsAlloc
push 0
call fcn.00418920
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4189d2
push dword [ebp + 8]
mov ecx, esi
call fcn.004152db
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x418a14
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x4379d0
push 0x4379c8
push str.FlsGetValue
push 2
call fcn.00418920
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x418a45
mov ecx, esi
call fcn.004152db
call esi
jmp 0x418a4b
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x418a4e
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x4379d8
push 0x4379d0
push str.FlsSetValue
push 3
call fcn.00418920
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x418a82
mov ecx, esi
call fcn.004152db
call esi
jmp 0x418a88
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x4275ef
Capabilities:
Read file on windows

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

Function at 0x42a830
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042a4f0
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0xba83938
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x230b2aa1
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401996
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
sete dl
cmp dword [ebp + 8], 0
sete al
mov ecx, 0
or dl, al
jne 0x401ada
lea ecx, [edi*4 + 0xb]
mov edx, 0x2aaaaaab
mov eax, ecx
imul edx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea edx, [edx*4 + 1]
cmp edx, dword [ebp + 0x14]
jle 0x401a3d
mov dword [esp], 0x6f
call sub.KERNEL32.DLL_SetLastError
sub esp, 4
mov ecx, 0
jmp 0x401ada
movzx eax, byte [ecx]
and eax, 3
shl eax, 4
movzx eax, byte [eax + section.49bcwupf]
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x3d
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
movzx eax, byte [ecx + 1]
and eax, 0xf
movzx eax, byte [eax*4 + section.49bcwupf]
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
mov esi, 0
mov ecx, dword [ebp + 8]
cmp esi, edi
jge 0x401ad2
movzx eax, byte [ecx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + section.49bcwupf]
mov byte [ebx], al
mov eax, edi
sub eax, esi
cmp eax, 1
je 0x4019fc
movzx edx, byte [ecx]
and edx, 3
shl edx, 4
movzx eax, byte [ecx + 1]
shr al, 4
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.49bcwupf]
mov byte [ebx + 1], al
mov eax, edi
sub eax, esi
cmp eax, 2
je 0x401a1f
movzx edx, byte [ecx + 1]
and edx, 0xf
shl edx, 2
movzx eax, byte [ecx + 2]
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.49bcwupf]
mov byte [ebx + 2], al
movzx eax, byte [ecx + 2]
and eax, 0x3f
movzx eax, byte [eax + section.49bcwupf]
mov byte [ebx + 3], al
add esi, 3
add ecx, 3
add ebx, 4
cmp esi, edi
jl 0x401a4d
mov byte [ebx], 0
mov ecx, 1
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401b7e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, 0
mov dword [esp], 0
call sub.msvcrt.dll_malloc
mov esi, eax
mov dword [esp + 4], 0x40e000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edi, eax
mov eax, 0
test edi, edi
je 0x401c23
jmp 0x401bc1
mov eax, 0
jmp 0x401c23
test byte [edi + 0xc], 0x10
jne 0x401c00
inc ebx
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_realloc
mov esi, eax
test eax, eax
je 0x401bba
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 1
lea eax, [eax + ebx - 1]
mov dword [esp], eax
call sub.msvcrt.dll_fread
test byte [edi + 0xc], 0x10
je 0x401bc7
lea eax, [ebx - 1]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00401b44
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov eax, ebx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10032a80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100454eb
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x10056018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x44], eax
je 0x10032bf4
push 0x802
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0x400
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new___unsigned_int_]
add esp, 4
mov edi, eax
push 0x802
push 0
push edi
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x10032afa
mov eax, dword [esi]
jmp 0x10032afc
mov eax, esi
lea ecx, [ebp - 0x4c]
push ecx
push edi
lea ecx, [ebp - 0x48]
push ecx
push 0
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cdq
test eax, eax
jne 0x10032bc7
test edx, edx
jne 0x10032bc7
cmp dword [ebp - 0x48], 4
jne 0x10032b8e
mov esi, dword [edi]
sub esp, 8
lea ecx, [ebp - 0x100]
call fcn.1002bb50
push esi
lea ecx, [ebp - 0xf0]
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x100]
call fcn.1002bb50
mov ecx, dword [ebp - 0x44]
push eax
call fcn.1002bb50
cmp dword [ebp - 0x14], 8
jb 0x10032b75
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea ecx, [ebp - 0x100]
call fcn.1002a840
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov al, 1
jmp 0x10032bf6
cmp word [edi], 0
jne 0x10032b98
xor ecx, ecx
jmp 0x10032baf
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10032ba0
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x44]
push edi
call fcn.1002bb50
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov al, 1
jmp 0x10032bf6
push esi
mov edx, str.Query_registry_value_with_key:
lea ecx, [ebp - 0x40]
call fcn.1002bb50
add esp, 4
cmp dword [ebp - 0x2c], 8
jb 0x10032bea
push dword [ebp - 0x40]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
push edi
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003fc71
mov esp, ebp
pop ebp
ret 8