joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fbf00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [0x730b1c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
movzx eax, byte [ebp + 0x18]
push eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0x10]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 0x14]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 8]
call fcn.00492150
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x6f0], 0
je 0x4fbfed
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x6f0]
call fcn.004fc7f0
mov esi, esp
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsRectEmpty]
cmp esi, esp
call fcn.00611b50
test eax, eax
je 0x4fbfb5
mov esi, esp
push 0
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x6f0]
call fcn.0047a330
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, esp
call fcn.00611b50
jmp 0x4fbfed
mov esi, esp
push 0x54
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x6f0]
call fcn.0047a330
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp esi, esp
call fcn.00611b50
push edx
mov ecx, ebp
push eax
lea edx, [0x4fc01c]
call fcn.00611af0
pop eax
pop edx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
add esp, 0x20
cmp ebp, esp
call fcn.00611b50
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4fc040
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [0x730b1c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
movzx eax, byte [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.00492a10
mov eax, dword [ebp - 8]
cmp dword [eax + 0x6f0], 0
je 0x4fc119
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x6f0]
call fcn.004fc7f0
mov esi, esp
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
cmp esi, esp
call fcn.00611b50
test eax, eax
je 0x4fc0e1
mov esi, esp
push 0
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x6f0]
call fcn.0047a330
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, esp
call fcn.00611b50
jmp 0x4fc119
mov esi, esp
push 0x54
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x6f0]
call fcn.0047a330
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp esi, esp
call fcn.00611b50
push edx
mov ecx, ebp
push eax
lea edx, [0x4fc148]
call fcn.00611af0
pop eax
pop edx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
add esp, 0x20
cmp ebp, esp
call fcn.00611b50
mov esp, ebp
pop ebp
ret 0xc
Function at 0x51e8a0
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x20
call fcn.00611bb0
push ebx
push esi
mov esi, dword [esp + 0x38]
xor ebx, ebx
mov eax, esi
sub eax, ebx
je 0x51e8e8
sub eax, 2
je 0x51e8e8
sub eax, 0x15
je 0x51e8e8
push 0x293
push str.crypto_bio_b_addr.c
push 0x83
push 0x8f
push 0x20
call fcn.00512140
add esp, 0x14
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
call fcn.0051e6b0
cmp eax, 1
jne 0x51e8e0
mov eax, dword [esp + 0x3c]
xor ecx, ecx
push ebp
push edi
xorps xmm0, xmm0
mov dword [esp + 0x10], ecx
xor edi, edi
movlpd qword [esp + 0x20], xmm0
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
test esi, esi
jne 0x51e929
or ecx, 0x400
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x3c], 1
jne 0x51e937
or ecx, 1
mov dword [esp + 0x10], ecx
mov ebp, dword [esp + 0x48]
lea eax, [esp + 0x10]
push ebp
push eax
push dword [esp + 0x40]
push dword [esp + 0x40]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
je 0x51e98f
cmp esi, 8
je 0x51e9d6
mov ecx, dword [esp + 0x10]
test ecx, 0x400
je 0x51e99e
push ebp
lea eax, [esp + 0x14]
and ecx, 0xfffffbff
push eax
push dword [esp + 0x40]
or ecx, 4
mov edi, esi
push dword [esp + 0x40]
mov dword [esp + 0x20], ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
jne 0x51e955
mov ebx, 1
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
push 0x2d6
push str.crypto_bio_b_addr.c
push 2
push 0x8f
push 0x20
call fcn.00512140
test edi, edi
cmovne esi, edi
push esi
call fcn.0051ede0
push eax
push 1
call fcn.00511780
add esp, 0x20
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
push 0x2c7
push str.crypto_bio_b_addr.c
push 0x41
push 0x8f
push 0x20
call fcn.00512140
add esp, 0x14
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
Function at 0x531e00
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x531e27
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x531e16
pop edi
movzx eax, dl
pop esi
ret
Function at 0x5b4f70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.00611bb0
mov eax, dword [0x730b1c]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
push ebx
push ebp
movzx ebx, byte [eax]
lea ebp, [eax + 1]
mov edx, ebp
shl ebx, 0x18
push esi
push edi
mov edi, dword [esp + 0x50]
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 0x10
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
mov esi, dword [edi]
movzx eax, byte [edx + 2]
or ebx, eax
mov dword [esp + 0x14], edi
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x24], ebp
movzx eax, byte [edx + 6]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [esp + 0x2c]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x18], ebx
mov eax, ebx
mov byte [esp + 0x2f], bl
shr eax, 0x18
or edx, ecx
mov byte [esp + 0x2c], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x32], al
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x33], dl
test eax, eax
je 0x5b5135
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x3c]
sub ecx, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
nop dword [eax]
dec eax
mov dword [esp + 0x44], eax
test esi, esi
jne 0x5b50c5
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
call fcn.005b49a0
mov ebx, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x1c]
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
inc ebp
mov byte [esp + 0x2f], bl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
mov al, byte [esp + esi + 0x2c]
inc esi
xor al, byte [edi]
and esi, 7
mov byte [ecx + edi], al
inc edi
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x5b5060
test ebp, ebp
mov ebp, dword [esp + 0x24]
je 0x5b511c
mov ecx, dword [esp + 0x28]
mov eax, ebx
shr eax, 0x18
mov byte [ebp + 2], bl
mov byte [ebp + 6], dl
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp], al
mov eax, ebx
shr eax, 8
mov byte [ebp + 1], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 3], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 4], al
mov eax, edx
shr eax, 8
mov byte [ebp + 5], al
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00610840
add esp, 0x28
ret
mov ecx, dword [esp + 0x34]
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00610840
add esp, 0x28
ret
Function at 0x5b7be0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.00611bb0
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x34]
mov edi, dword [edi]
mov dword [esp + 0x10], edi
test edi, edi
je 0x5b7c29
mov ecx, dword [esp + 0x30]
nop dword [eax]
test esi, esi
je 0x5b7c29
mov al, byte [edi + ecx]
dec esi
xor al, byte [ebp]
inc edi
mov byte [ebx], al
inc ebp
inc ebx
and edi, 0xf
mov dword [esp + 0x10], edi
jne 0x5b7c10
mov edx, dword [esp + 0x2c]
movzx ecx, byte [edx + 0xc]
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xf]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x24], ecx
cmp esi, 0x10
jb 0x5b7cfa
nop dword [eax]
mov eax, esi
mov edx, ecx
shr eax, 4
xor edi, edi
add ecx, eax
cmp ecx, eax
cmovae edi, ecx
neg edx
mov dword [esp + 0x24], edi
cmp ecx, eax
mov edi, dword [esp + 0x2c]
push edi
push dword [esp + 0x2c]
cmovae edx, eax
push edx
push ebx
push ebp
mov dword [esp + 0x28], edx
call dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
add esp, 0x14
mov eax, edx
mov byte [edi + 0xf], dl
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, edx
shr eax, 8
mov byte [edi + 0xe], al
test edx, edx
jne 0x5b7cd6
mov edx, 0xc
mov eax, 1
nop
movzx ecx, byte [edx + edi - 1]
dec edx
add eax, ecx
mov byte [edx + edi], al
shr eax, 8
test edx, edx
jne 0x5b7cc0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov ecx, edx
shl eax, 4
sub esi, eax
add ebx, eax
add ebp, eax
cmp esi, 0x10
jae 0x5b7c60
mov edi, dword [esp + 0x10]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x2c]
test esi, esi
je 0x5b7d68
mov eax, dword [esp + 0x30]
xorps xmm0, xmm0
push edx
push dword [esp + 0x2c]
push 1
push eax
push eax
movups xmmword [eax], xmm0
call dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
add esp, 0x14
mov edx, dword [esp + 0x2c]
inc ecx
mov eax, ecx
shr eax, 0x18
mov byte [edx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [edx + 0xe], al
mov byte [edx + 0xf], cl
test ecx, ecx
jne 0x5b7d49
push edx
call fcn.005b7db0
add esp, 4
mov eax, dword [esp + 0x30]
sub ebp, eax
sub ebx, eax
lea ecx, [edi + eax]
add edi, esi
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub esi, 1
jne 0x5b7d56
mov eax, dword [esp + 0x34]
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x5b83a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00611bb0
push ebp
mov ebp, dword [esp + 0xc]
mov eax, dword [ebp + 0x38]
or eax, dword [ebp + 0x3c]
je 0x5b83bf
mov eax, 0xfffffffe
pop ebp
pop ecx
ret
push esi
mov esi, dword [esp + 0x18]
xor ecx, ecx
mov eax, esi
add eax, dword [ebp + 0x30]
adc ecx, dword [ebp + 0x34]
cmp ecx, 0x20000000
ja 0x5b848f
jb 0x5b83e4
test eax, eax
jne 0x5b848f
push ebx
mov dword [ebp + 0x34], ecx
mov ecx, dword [ebp + 0x16c]
mov dword [ebp + 0x30], eax
mov dword [esp + 0x14], ecx
push edi
mov edi, dword [esp + 0x1c]
test ecx, ecx
je 0x5b8430
nop
test esi, esi
je 0x5b8481
mov al, byte [edi]
dec esi
xor byte [ecx + ebp + 0x40], al
inc edi
inc ecx
and ecx, 0xf
mov dword [esp + 0x18], ecx
jne 0x5b8400
lea eax, [ebp + 0x60]
push eax
lea ebx, [ebp + 0x40]
push ebx
call fcn.005b9a40
mov eax, dword [esp + 0x20]
add esp, 8
mov dword [esp + 0x18], eax
jmp 0x5b8433
lea ebx, [ebp + 0x40]
mov eax, esi
lea ecx, [ebp + 0x60]
and eax, 0xfffffff0
mov dword [esp + 0x10], eax
je 0x5b8455
push eax
push edi
push ecx
push ebx
call fcn.005b9810
add edi, dword [esp + 0x20]
add esp, 0x10
sub esi, dword [esp + 0x10]
test esi, esi
je 0x5b847d
mov ecx, esi
nop dword [eax + eax]
mov al, byte [edi]
lea edi, [edi + 1]
xor byte [ebx], al
lea ebx, [ebx + 1]
sub esi, 1
jne 0x5b8460
pop edi
pop ebx
pop esi
mov dword [ebp + 0x16c], ecx
xor eax, eax
pop ebp
pop ecx
ret
mov ecx, dword [esp + 0x18]
pop edi
pop ebx
pop esi
mov dword [ebp + 0x16c], ecx
xor eax, eax
pop ebp
pop ecx
ret
pop esi
or eax, 0xffffffff
pop ebp
pop ecx
ret
Function at 0x5b95f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10
call fcn.00611bb0
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x20]
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
cmp ebp, 0xc
jne 0x5b965b
mov eax, dword [esp + 0x24]
lea ebx, [ebp - 0xb]
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x1000000
jmp 0x5b9786
push edi
xor edi, edi
mov dword [esp + 0x1c], ebp
mov dword [esi + 0x40], edi
lea ebx, [esi + 0x40]
mov dword [ebx + 4], edi
lea edx, [esi + 0x60]
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], edx
cmp ebp, 0x10
jb 0x5b96ef
mov eax, ebp
lea ecx, [esi + 0x41]
shr eax, 4
mov esi, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], eax
lea edx, [edi + 2]
mov eax, ecx
mov ebx, 4
nop dword [eax]
movzx ecx, byte [edx - 2]
lea edx, [edx + 4]
xor byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [edx - 5]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 4]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 2], cl
sub ebx, 1
jne 0x5b96a0
push dword [esp + 0x14]
push esi
call fcn.005b9a40
mov ecx, dword [esp + 0x20]
add esp, 8
add edi, 0x10
sub ebp, 0x10
sub dword [esp + 0x2c], 1
jne 0x5b9693
mov esi, dword [esp + 0x24]
lea ebx, [esi + 0x40]
lea edx, [esi + 0x60]
test ebp, ebp
je 0x5b970e
mov ecx, ebx
mov al, byte [edi]
lea edi, [edi + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub ebp, 1
jne 0x5b96f5
push edx
push ebx
call fcn.005b9a40
add esp, 8
mov edx, dword [esp + 0x1c]
xor eax, eax
shld eax, edx, 3
xor byte [esi + 0x4b], al
shl edx, 3
xor byte [esi + 0x4f], dl
mov ecx, edx
mov dword [esp + 0x24], eax
shrd ecx, eax, 0x18
xor byte [esi + 0x4c], cl
mov edi, eax
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, edx
xor byte [esi + 0x4d], cl
shrd eax, edi, 8
xor byte [esi + 0x4e], al
lea eax, [esi + 0x60]
push eax
push ebx
call fcn.005b9a40
movzx ebx, byte [esi + 0x4c]
add esp, 8
movzx eax, byte [esi + 0x4d]
mov ecx, dword [esi + 0x44]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0x4e]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0x4f]
shl ebx, 8
or ebx, eax
mov eax, dword [esi + 0x40]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
pop edi
mov dword [esi + 0x40], 0
lea eax, [esi + 0x20]
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
push dword [esi + 0x174]
push eax
mov eax, dword [esi + 0x170]
push esi
call eax
inc ebx
add esp, 0xc
mov eax, ebx
mov byte [esi + 0xf], bl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xe], al
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x5c0770
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x5c0784
mov dword [esp + 0x18], fcn.005bef50
jmp fcn.005b7900
mov dword [esp + 0x18], fcn.005be1f0
jmp fcn.005b7600
Function at 0x618880
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.006184a0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x6188b2
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x679780]
call dword [ebp - 8]
jmp 0x6188bc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret

Function at 0x665968
Capabilities:
Set environment variable

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

Function at 0x669c30
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x669c57
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00628ee0
add esp, 4
or eax, 0xffffffff
jmp 0x669c59
xor eax, eax
pop ebp
ret
Function at 0x40143f
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x828
push ebx
push esi
push edi
sub eax, eax
mov word [ebp - reloc.shlwapi.dll_PathFindFileNameA], ax
push 0x400
xor edi, edi
lea eax, [ebp - 0x828]
push eax
push edi
pop ebx
push edi
pop esi
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x828]
push edi
push 0x8000000
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
pop edi
cmp edi, 0xffffffff
je 0x4014e0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
pop ebx
mov ecx, ebx
mov dword [ebp - 0x14], eax
call fcn.00401720
push eax
pop esi
push 0
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4014c8
cmp dword [ebp - 0x20], ebx
je 0x4014d9
push esi
pop ecx
call fcn.00401790
xor esi, esi
sub ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, esi
jmp section..htext
Function at 0x401054
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
movzx ecx, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
jmp 0x401085
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 8], eax
jge 0x4010f9
mov eax, dword [ebp + 0x10]
push dword [eax + 0x3c]
mov eax, dword [ebp - 4]
push dword [eax + 8]
call fcn.00401010
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0x10]
cmp dword [ebp + 0xc], eax
jb 0x4010c3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
cmp eax, dword [ebp - 0xc]
jbe 0x4010ca
mov eax, 0xc1
jmp 0x4010fb
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
push dword [ebp - 0x10]
call fcn.0045c440
add esp, 0xc
jmp 0x401075
xor eax, eax
leave
ret 0xc
Function at 0x4010ff
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
movzx ecx, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
jmp 0x401130
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 8], eax
jge 0x401230
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x401153
jmp 0x401120
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x20000000
je 0x401169
mov dword [ebp - 0x10], 1
jmp 0x40116d
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x40000000
je 0x401189
mov dword [ebp - 0x14], 1
jmp 0x40118d
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x80000000
je 0x4011a9
mov dword [ebp - 0x18], 1
jmp 0x4011ad
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x20
je 0x4011cc
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x1c]
shl eax, 4
mov ecx, dword [ebp - 0x20]
lea eax, [eax + ecx*8 + 0x47ce44]
mov ecx, dword [ebp - 0x28]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x4000000
je 0x4011fd
mov eax, dword [ebp - 0xc]
or eax, 0x200
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40122b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401232
jmp 0x401120
xor eax, eax
leave
ret 4