joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002d141
Capabilities:
Encode data using xor

Disassembly:
push 0xa0
mov eax, 0x10074687
call fcn.1003bd1c
mov esi, ecx
call fcn.1002cce0
xor ebx, ebx
cmp al, 6
jne 0x1002d1fa
movaps xmm0, xmmword [0x100892e0]
mov edx, ebx
movups xmmword [ebp - 0x48], xmm0
mov cl, byte [ebp - 0x48]
xor byte [ebp + edx - 0x47], cl
inc edx
cmp edx, 0xe
jb 0x1002d16e
lea eax, [ebp - 0x47]
mov byte [ebp - 0x39], bl
push eax
lea ecx, [ebp - 0x7c]
call fcn.1000416d
mov dword [ebp - 4], ebx
mov edx, ebx
movaps xmm0, xmmword [0x10089ee0]
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0x1d4a4743
mov word [ebp - 0x10], 0x12
mov cl, byte [ebp - 0x24]
xor byte [ebp + edx - 0x23], cl
inc edx
cmp edx, 0x14
jb 0x1002d1a7
lea eax, [ebp - 0x23]
mov byte [ebp - 0xf], bl
push eax
lea ecx, [ebp - 0x64]
call fcn.1000416d
push ebx
push ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x7c]
and dword [esp], 0
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x64]
push eax
push eax
call dword [0x10087fc4]
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.10004022
push ebx
push 1
lea ecx, [ebp - 0x7c]
call fcn.10004022
jmp 0x1002d2cd
push 6
mov edi, ebx
lea eax, [esi + 0x110]
pop ecx
cmp dword [eax - 4], ebx
jbe 0x1002d211
cmp dword [eax], ebx
jbe 0x1002d211
add edi, dword [eax + 4]
add eax, 0x14
sub ecx, 1
jne 0x1002d205
mov ecx, dword [esi + 0x34]
call fcn.1000d4a2
test al, al
je 0x1002d22f
mov ecx, dword [esi + 0x34]
xor dl, dl
call fcn.1000d361
push ecx
mov edx, edi
lea ecx, [ebp - 0xac]
call fcn.1000bca3
pop ecx
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x1002d24d
mov eax, dword [eax]
movaps xmm0, xmmword [0x1008a230]
mov edx, ebx
push eax
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x366065
mov cl, byte [ebp - 0x38]
xor byte [ebp + edx - 0x37], cl
inc edx
cmp edx, 0x12
jb 0x1002d262
sub esp, 0x18
mov byte [ebp - 0x25], bl
lea eax, [ebp - 0x37]
mov ecx, esp
push eax
call fcn.1000416d
lea eax, [ebp - 0x94]
push eax
call fcn.10003c37
add esp, 0x20
mov byte [ebp - 4], 3
mov edx, eax
mov ecx, dword [esi + 0x100]
call fcn.1000dbc1
push ebx
push 1
lea ecx, [ebp - 0x94]
call fcn.10004022
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
push ebx
push 1
call fcn.10004022
mov ecx, dword [esi + 0xfc]
mov dl, 1
call fcn.1000d361
call fcn.1003bce5
ret
Function at 0x1002fb96
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x48
mov eax, 0x10074970
call fcn.1003bd50
mov esi, ecx
mov eax, dword [esi]
mov dword [0x10098ea8], eax
mov ecx, dword [esi]
call fcn.1000d4a2
test al, al
je 0x1002fc8b
cmp byte [ebp + 8], 0
jne 0x1002fc8b
xor ebx, ebx
mov dword [ebp - 0x3c], 0x647e5510
mov cl, 0x10
mov dword [ebp - 0x38], 0x44306275
mov dword [ebp - 0x34], 0x59307771
mov edx, ebx
mov word [ebp - 0x30], 0x54
xor cl, byte [ebp + edx - 0x3b]
mov byte [ebp + edx - 0x3b], cl
inc edx
cmp edx, 0xc
jae 0x1002fbf8
mov cl, byte [ebp - 0x3c]
jmp 0x1002fbe5
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x2f], bl
push eax
lea ecx, [ebp - 0x28]
call fcn.1000416d
lea eax, [ebp - 0x2b]
mov dword [ebp - 4], ebx
mov word [ebp - 0x2c], 0x77
lea ecx, [ebp - 0x54]
push eax
mov byte [ebp - 0x2b], bl
call fcn.1000416d
mov byte [ebp - 4], 1
lea edx, [ebp - 0x54]
mov ecx, dword [esi + 8]
call fcn.1000d6c9
push ebx
push 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.10004022
mov ecx, dword [esi + 8]
or edx, 0xffffffff
call fcn.1000d71b
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x54]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.1000416d
mov byte [ebp - 4], 2
lea edx, [ebp - 0x54]
mov ecx, dword [esi + 8]
call fcn.1000db48
push ebx
push 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.10004022
mov ecx, dword [esi + 8]
call fcn.1000d77e
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.10004022
call fcn.1003bcfa
ret 0xc
Function at 0x10030705
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x18], 0x7a607614
mov esi, ecx
mov dword [ebp - 0x14], 0x7b66704b
mov cl, 0x14
mov word [ebp - 0x10], 0x64
mov edx, ebx
xor cl, byte [ebp + edx - 0x17]
mov byte [ebp + edx - 0x17], cl
inc edx
cmp edx, 8
jae 0x1003073c
mov cl, byte [ebp - 0x18]
jmp 0x10030729
sub esp, 0x18
mov byte [ebp - 0xf], bl
lea eax, [ebp - 0x17]
mov ecx, esp
push eax
call fcn.1000416d
mov ecx, dword [esi]
call fcn.1000d131
movaps xmm0, xmmword [0x10089f40]
add esp, 0x18
mov dword [esi + 0x10], eax
mov edx, ebx
movups xmmword [ebp - 0x1c], xmm0
mov byte [ebp - 0xc], bl
mov cl, byte [ebp - 0x1c]
xor byte [ebp + edx - 0x1b], cl
inc edx
cmp edx, 0xf
jb 0x1003076a
sub esp, 0x18
mov byte [ebp - 0xc], bl
lea eax, [ebp - 0x1b]
mov ecx, esp
push eax
call fcn.1000416d
mov ecx, dword [esi]
call fcn.1000d131
movaps xmm0, xmmword [0x10089b30]
add esp, 0x18
mov dword [esi + 0x14], eax
mov edx, ebx
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], 0xe080a19
mov byte [ebp - 0xc], bl
mov cl, byte [ebp - 0x20]
xor byte [ebp + edx - 0x1f], cl
inc edx
cmp edx, 0x13
jb 0x100307ac
sub esp, 0x18
mov byte [ebp - 0xc], bl
lea eax, [ebp - 0x1f]
mov ecx, esp
push eax
call fcn.1000416d
mov ecx, dword [esi]
call fcn.1000d131
add esp, 0x18
mov dword [esi + 4], eax
mov cl, 0x48
mov dword [ebp - 0x1c], 0x263c2a48
mov dword [ebp - 0x18], 0x263d2e17
mov edx, ebx
mov dword [ebp - 0x14], 0x3b29242b
mov word [ebp - 0x10], 0x3b
xor cl, byte [ebp + edx - 0x1b]
mov byte [ebp + edx - 0x1b], cl
inc edx
cmp edx, 0xc
jae 0x10030809
mov cl, byte [ebp - 0x1c]
jmp 0x100307f6
sub esp, 0x18
mov byte [ebp - 0xf], bl
lea eax, [ebp - 0x1b]
mov ecx, esp
push eax
call fcn.1000416d
mov ecx, dword [esi]
call fcn.1000d131
mov dword [esi + 8], eax
add esp, 0x18
mov cl, 0x4a
mov dword [ebp - 0x18], 0x243e284a
mov dword [ebp - 0x14], 0x3e252615
mov eax, ebx
mov dword [ebp - 0x10], 0x33382f3e
mov byte [ebp - 0xc], bl
xor byte [ebp + eax - 0x17], cl
inc eax
cmp eax, 0xb
jae 0x10030852
mov cl, byte [ebp - 0x18]
jmp 0x10030843
sub esp, 0x18
mov byte [ebp - 0xc], bl
lea eax, [ebp - 0x17]
mov ecx, esp
push eax
call fcn.1000416d
mov ecx, dword [esi]
call fcn.1000d131
mov ecx, dword [0x10098bc8]
add esp, 0x18
mov dword [esi + 0xc], eax
test ecx, ecx
je 0x10030898
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x10030898
mov ecx, dword [ecx]
call fcn.1000d27d
mov ecx, dword [esi]
add edx, 0xf5
push 5
call fcn.1000d318
pop ecx
mov ecx, dword [esi]
push 0x14
pop edx
call fcn.1000d47f
mov ecx, dword [esi]
mov dl, 1
call fcn.1000d361
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100308b9
xor dl, dl
call fcn.1000d361
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100308c7
xor dl, dl
call fcn.1000d361
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x100308d5
xor dl, dl
call fcn.1000d361
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10031ad6
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor ecx, ecx
mov dword [0x100be158], 0xea60
push esi
mov eax, 0x1f4
mov dword [0x100be154], ecx
push edi
push ecx
mov dword [0x100be150], eax
mov dword [0x100be15c], ecx
mov dword [0x100be160], eax
mov dword [0x100be164], ecx
mov dword [0x100be168], ecx
call fcn.1005e27b
mov edi, eax
mov esi, edx
mov eax, 0x55555555
mov dword [0x100be178], edi
xor ebx, ebx
mov dword [0x100bf4f8], eax
pop ecx
mov dword [0x100bf4fc], eax
inc ebx
mov dword [0x100be17c], esi
push 0x5851f42d
xor eax, eax
mov ecx, esi
push 0x4c957f2d
shr ecx, 0x1e
xor eax, esi
xor ecx, edi
push eax
push ecx
call fcn.1003bf20
mov edi, eax
mov esi, edx
mov eax, ebx
cdq
add edi, eax
mov eax, 0x138
mov dword [ebx*8 + 0x100be178], edi
adc esi, edx
mov dword [ebx*8 + 0x100be17c], esi
inc ebx
cmp ebx, eax
jl 0x10031b35
movaps xmm0, xmmword [0x10089c00]
pop edi
pop esi
mov dword [0x100be170], eax
mov eax, 0x100be150
movups xmmword [0x100bf500], xmm0
pop ebx
ret 0x10

Function at 0x10035d1c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10094084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov eax, esi
push edi
mov edi, dword [ebp + 8]
test edx, edx
je 0x10035d65
cmp word [edx], cx
je 0x10035d65
push ecx
lea eax, [ebp - 8]
push eax
push ecx
push 0xf003f
push ecx
push ecx
push ecx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10035d8a
mov eax, dword [ebp - 8]
xor ecx, ecx
push dword [ebp + 0x14]
push ebx
push 1
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 8]
mov edi, eax
test ecx, ecx
je 0x10035d88
cmp ecx, esi
je 0x10035d88
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003b125
mov esp, ebp
pop ebp
ret

Function at 0x10035fb3
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10094084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xb
mov ebx, ecx
lea edi, [ebp - 0x34]
pop ecx
mov esi, str._pipediscord_ipc_0
rep movsd dword es:[edi], dword [esi]
push 0x30
pop eax
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor edi, edi
mov word [ebp - 0xa], ax
jmp 0x1003601f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10036005
mov ax, word [ebp - 0xa]
cmp ax, 0x39
jae 0x1003604e
inc ax
mov word [ebp - 0xa], ax
jmp 0x1003601f
cmp eax, 0xe7
jne 0x1003604e
push 0x2710
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x1003604e
push edi
push edi
push 3
push edi
push edi
push 0xc0000000
lea eax, [ebp - 0x34]
push eax
call esi
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x10035fe8
mov byte [ebx], 1
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003b125
mov esp, ebp
pop ebp
ret
xor al, al
jmp 0x1003603d
Function at 0x10038450
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10038620
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1003852d
mov edx, dword [ebp - 4]
cmp edx, dword [0x10094064]
jb 0x1003849a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10094068]
ja 0x1003849a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003846a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10053790
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x100384bf
jmp 0x1003852d
cmp dword [ebp - 0x14], 0x10000
jne 0x10038513
cmp dword [ebp - 0x18], 0x10000
jb 0x10038513
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100384f6
mov eax, dword [ebp - 8]
jmp 0x1003852f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10038506
xor eax, eax
jmp 0x1003852f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10038528
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10038620
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003846a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10038540
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10038650
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10038615
mov edx, dword [ebp - 4]
cmp edx, dword [0x10094064]
jb 0x10038585
mov eax, dword [ebp - 4]
cmp eax, dword [0x10094068]
ja 0x10038585
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10038555
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10053790
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x100385aa
jmp 0x10038615
cmp dword [ebp - 0x14], 0x10000
jne 0x100385fe
cmp dword [ebp - 0x18], 0x10000
jb 0x100385fe
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100385e1
mov eax, dword [ebp - 8]
jmp 0x10038617
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x100385f1
xor eax, eax
jmp 0x10038617
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10038610
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10038650
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10038555
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10038680
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10038a70
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10097ad8], 0
jne 0x100386bd
cmp dword [0x10097ad4], 0
je 0x100386bd
mov eax, dword [0x10097ad4]
mov dword [0x10097ad8], eax
cmp dword [0x10097ad8], 0
je 0x1003873a
mov ecx, dword [0x10097ad8]
cmp dword [ecx + 8], 0
je 0x1003873a
mov edx, dword [0x10097ad8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1003873a
mov ecx, dword [0x10097ad8]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1003873a
mov eax, dword [0x10097ad8]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10038709
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10038710
xor eax, eax
jmp 0x10038859
mov ecx, dword [0x10097ad8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.10053790
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10038859
mov edx, dword [0x10097ad4]
mov dword [0x10097ad8], edx
jmp 0x10038756
mov eax, dword [0x10097ad8]
mov ecx, dword [eax + 4]
mov dword [0x10097ad8], ecx
cmp dword [0x10097ad8], 0
je 0x10038796
cmp dword [0x10097ad8], 0
je 0x10038794
mov edx, dword [0x10097ad8]
cmp dword [edx + 8], 0
je 0x10038794
mov eax, dword [0x10097ad8]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10038794
mov edx, dword [0x10097ad8]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10038794
jmp 0x100386ee
jmp 0x10038748
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10038860
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10038857
mov eax, dword [ebp - 0x18]
mov dword [0x10097ad8], eax
mov ecx, dword [0x10097ad8]
mov dword [ecx], 0x52727464
mov edx, dword [0x10097ad8]
mov dword [edx + 8], 0
mov eax, dword [0x10097ad8]
mov ecx, dword [0x10097ad4]
mov dword [eax + 4], ecx
mov edx, dword [0x10097ad8]
mov dword [0x10097ad4], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10097ad8]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10038827
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10038847
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1003881e
mov eax, dword [0x10097ad8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x100386ee
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100395a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10097ad4]
mov dword [ebp - 4], eax
jmp 0x100395b9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100395e0
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x100395de
call sub.KERNEL32.dll_GetLastError
jmp 0x100395e2
jmp 0x100395b0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10039a80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10097ae4], eax
je 0x10039aa4
mov eax, 0x10dd
jmp 0x10039c4c
cmp dword [0x10097ae8], 0
je 0x10039ab7
mov eax, dword [0x10097ae8]
jmp 0x10039c4c
cmp dword [ebp + 0xc], 0
jne 0x10039ac7
mov eax, 0x57
jmp 0x10039c4c
cmp dword [ebp + 8], 0
jne 0x10039ad7
mov eax, 6
jmp 0x10039c4c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10039b00
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x10097ae8], ecx
mov edx, dword [ebp + 8]
mov dword [0x10097aec], edx
mov eax, dword [ebp - 8]
jmp 0x10039c4c
push 0x18
call fcn.1003b136
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10039b5b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x10097ae8], ecx
cmp dword [ebp - 4], 0
je 0x10039b4a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.1003b18c
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x10097aec], ecx
mov eax, dword [ebp - 8]
jmp 0x10039c4c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10039a60
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10039a60
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x10039b9b
cmp dword [ebp - 0xc], 0x1e
jbe 0x10039bb7
mov dword [ebp - 8], 9
cmp dword [0x10097adc], 0
je 0x10039bb2
jmp 0x10039b29
jmp 0x10039b20
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x10039bde
mov dword [ebp - 8], 9
cmp dword [0x10097adc], 0
je 0x10039bd9
jmp 0x10039b29
jmp 0x10039b20
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x10039c09
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10039b20
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x10097af4]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10097af4], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10039c60
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10097ae4], eax
je 0x10039c7d
mov eax, 0x10dd
jmp 0x10039d60
mov eax, dword [0x10097af4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10039cfc
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10039cd8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10039cd8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10038b00
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1003b18c
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10039c85
mov dword [0x10097af4], 0
call fcn.100393e0
mov ecx, dword [0x10097af0]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10039d4a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1003b18c
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10039d14
mov dword [0x10097af0], 0
mov dword [0x10097ae4], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003a240
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10097ae8], 0
je 0x1003a259
mov eax, dword [0x10097ae8]
jmp 0x1003a2f8
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1003a26a
xor eax, eax
jmp 0x1003a2f8
push 8
call fcn.1003b136
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003a2c2
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1003a2ab
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1003b18c
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10097ae8], eax
mov dword [0x10097aec], 0
mov eax, dword [ebp - 8]
jmp 0x1003a2f8
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1003a2da
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1003a28a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10097af0]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10097af0], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x1003dfa5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x1006061b
Capabilities:
Read file on windows

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

Function at 0x10068735
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100683f5
Function at 0x402768
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403760
test esi, esi
jne 0x40279e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403850
jmp 0x4027bc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040267c
mov edi, eax
test esi, esi
je 0x4027bc
cmp dword [ebx], 0
je 0x4027bc
dec esi
jmp 0x4027a5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x409014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402d38
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402d18
xor eax, eax
push ebp
push 0x402d11
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402d54
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402d18
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x409014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x409014], ax
mov esp, ebp
pop ebp
ret

Function at 0x4035e4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40b044], 0
je 0x403645
cmp word [0x40b218], 0xd7b2
jne 0x40360d
cmp dword [0x40b220], 0
jbe 0x40360d
mov eax, 0x40b214
call dword [0x40b230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40905c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40366c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409020], 0
jne 0x403661
push 0
push 0x409054
push 0x40905c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret