joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004475
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
push edi
xor edi, edi
cmp eax, edi
je 0x1004498
mov dword [ebp + 8], eax
push 0x10101d0
lea eax, [ebp + 8]
jmp 0x10044f3
push edi
lea ebx, [esi + 8]
push 0x80
mov ecx, ebx
call fcn.010042c5
mov eax, dword [esi + 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push edi
lea eax, [ebp - 4]
push eax
push edi
mov ecx, ebx
call fcn.010021c5
push eax
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, eax
sub ecx, edi
je 0x10044f9
sub ecx, 0xea
jne 0x10044e3
mov eax, dword [ebp - 4]
push edi
inc eax
push eax
jmp 0x10044a1
sub ecx, 0x19
je 0x1004516
mov dword [ebp - 8], eax
push 0x10101d0
lea eax, [ebp - 8]
push eax
call sub.msvcrt.dll__CxxThrowException
mov eax, dword [ebp - 4]
push 1
inc eax
push eax
mov ecx, ebx
call fcn.0100436f
push edi
mov ecx, ebx
call fcn.010021c5
pop edi
pop esi
pop ebx
leave
ret 4
xor eax, eax
jmp 0x100450f

Function at 0x100451f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x18]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
je 0x1004547
mov dword [ebp + 8], eax
push 0x10101d0
lea eax, [ebp + 8]
jmp 0x10045bc
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0xc]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push ebx
mov ecx, esi
call fcn.010021c5
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x1004586
cmp eax, 0xea
jne 0x10045b1
push ebx
push dword [ebp + 0xc]
mov ecx, esi
call fcn.010042c5
jmp 0x1004599
push 1
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0100436f
mov dword [ebp - 4], 1
cmp dword [ebp - 4], ebx
je 0x100454b
mov eax, dword [ebp + 0x10]
pop esi
pop edi
cmp eax, ebx
pop ebx
je 0x10045ad
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
leave
ret 0xc
mov dword [ebp - 0xc], eax
push 0x10101d0
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x1004614
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 0x18]
test eax, eax
jne 0x1004661
cmp dword [ebp + 0x10], 5
jne 0x1004647
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp + 0xc], eax
xor esi, esi
lea eax, [ebp - 1]
mov dl, byte [ebp + esi + 0xc]
inc esi
mov byte [eax], dl
dec eax
cmp esi, 4
jb 0x1004633
mov eax, dword [ebp - 4]
mov dword [ebp + 0xc], eax
pop esi
push 4
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1004672
mov dword [ebp + 0x10], eax
push 0x10101d0
lea eax, [ebp + 0x10]
push eax
call sub.msvcrt.dll__CxxThrowException
leave
ret 0xc
Function at 0x100480f
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, 0x100f6f6
call fcn.01003f88
sub esp, 0x28
push ebx
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 0x34], 0x100119c
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [edi]
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
je 0x1004862
mov dword [ebp + 8], eax
push 0x10101d0
lea eax, [ebp + 8]
jmp 0x1004916
mov eax, dword [ebp - 0x18]
dec eax
je 0x100491c
dec eax
je 0x1004893
dec eax
je 0x100491c
sub eax, 4
je 0x100491c
mov dword [ebp - 0x1c], 0xb
push 0x10101d0
lea eax, [ebp - 0x1c]
jmp 0x1004916
push esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
call fcn.010042c5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.0100451f
push esi
lea eax, [ebp - 0xd]
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.010021c5
push eax
call dword [0x10010a0]
cmp eax, esi
mov dword [ebp - 0x14], eax
jne 0x10048e0
call dword [fcn.01001088]
mov dword [ebp - 0x20], eax
push 0x10101d0
lea eax, [ebp - 0x20]
jmp 0x1004916
push eax
push esi
lea ebx, [edi + 8]
push eax
mov ecx, ebx
call fcn.0100436f
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.010021c5
push eax
call dword [0x10010a0]
cmp eax, esi
mov dword [ebp - 0x14], eax
jne 0x1004939
call dword [fcn.01001088]
mov dword [ebp - 0x24], eax
push 0x10101d0
lea eax, [ebp - 0x24]
push eax
call sub.msvcrt.dll__CxxThrowException
push esi
push dword [ebp - 0x14]
lea ebx, [edi + 8]
mov ecx, ebx
call fcn.010042c5
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 8]
mov ecx, edi
call fcn.0100451f
push esi
mov ecx, ebx
call fcn.010021c5
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
pop edi
cmp eax, esi
pop esi
pop ebx
je 0x1004955
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], 0x100119c
call fcn.01004292
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x100643e
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x1014044]
and eax, dword [ebp + 0xc]
test ax, ax
je 0x10064bd
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
xor ebx, ebx
cmp edi, esi
je 0x100646b
cmp dword [edi], esi
je 0x100646b
inc ebx
movzx eax, bx
cmp dword [edi + eax*4], esi
jne 0x1006462
cmp word [ebp + 0xc], 4
jae 0x10064ba
cmp dword [0x1014194], esi
je 0x1006496
cmp dword [0x1014190], esi
jne 0x100649e
push 2
call fcn.01006394
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [0x1014190], eax
cmp dword [0x1014190], esi
je 0x10064ba
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x1c]
push ebx
push esi
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [0x1014190]
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
pop edi
pop esi
pop ebx
pop ebp
ret 0x18

Function at 0x1007182
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, 0x100f902
call fcn.01003f88
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [0x10141b0]
mov eax, dword [edi]
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
push ebx
mov ecx, edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], edi
call dword [eax]
mov eax, dword [ebp + 8]
cmp dword [0x1014054], eax
mov byte [ebp - 4], 1
ja 0x10071d1
mov dword [ebp - 0x20], 0x80100009
push 0x10101d0
lea eax, [ebp - 0x20]
jmp 0x1007237
mov esi, 0x101404c
push eax
mov ecx, esi
call fcn.0100a12e
push ebx
push dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x1c], eax
call fcn.01006725
mov ecx, dword [0x10141b8]
call fcn.0100e098
mov eax, dword [edi]
mov ecx, edi
mov byte [ebp - 4], bl
call dword [eax + 4]
cmp dword [ebp - 0x1c], ebx
je 0x10072c7
push 0xc
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x100721f
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov esi, eax
jmp 0x1007221
xor esi, esi
cmp esi, ebx
mov dword [ebp - 0x14], esi
jne 0x100723d
mov dword [ebp - 0x24], 0x80100006
push 0x10101d0
lea eax, [ebp - 0x24]
push eax
call sub.msvcrt.dll__CxxThrowException
lea eax, [esi + 8]
push eax
push 4
push dword [ebp - 0x1c]
push 0x1006d1e
push ebx
push ebx
call dword [0x1001054]
push eax
mov ecx, esi
call fcn.010067cc
mov eax, dword [esi]
cmp eax, ebx
je 0x1007266
cmp eax, 0xffffffff
jne 0x1007272
push 1
mov ecx, esi
call fcn.01006c62
mov dword [ebp - 0x14], ebx
mov esi, dword [0x10141b0]
mov eax, dword [esi]
push ebx
push ebx
mov ecx, esi
mov dword [ebp - 0x28], esi
call dword [eax]
mov byte [ebp - 4], 2
mov dword [ebp + 8], ebx
mov edi, 0x101405c
push dword [ebp + 8]
mov ecx, edi
call fcn.0100a12e
test eax, eax
je 0x10072a2
inc dword [ebp + 8]
jmp 0x100728f
push dword [ebp - 0x14]
mov ecx, edi
push dword [ebp + 8]
call fcn.01006725
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [0x1001058]
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x100c27f
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esi + 4], eax
lea eax, [esi + 0x10]
push eax
xor ebx, ebx
push ebx
push esi
push 0x100bf5c
push ebx
push ebx
call dword [0x1001054]
lea edi, [esi + 8]
push eax
mov ecx, edi
call fcn.010067cc
mov edi, dword [edi]
cmp edi, ebx
je 0x100c2ba
cmp edi, 0xffffffff
jne 0x100c2dc
mov esi, dword [esi + 0xc]
push ebx
push ebx
push esi
push 0x130
push ebx
call fcn.010064c6
push 0x10101d0
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], esi
call sub.msvcrt.dll__CxxThrowException
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x100c453
Capabilities:
Create thread

Disassembly:
mov eax, 0x100fd91
call fcn.01003f88
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x60
mov dword [ebp - 4], ebx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp - 0x1c], ecx
cmp ecx, ebx
mov byte [ebp - 4], 1
je 0x100c487
call fcn.0100edb4
jmp 0x100c489
xor eax, eax
cmp eax, ebx
mov byte [ebp - 4], bl
mov dword [0x10141c8], eax
jne 0x100c4b8
push ebx
push ebx
push ebx
push 0x12d
push ebx
call fcn.0100654c
mov dword [ebp - 0x14], 0x80100006
push 0x10101d0
lea eax, [ebp - 0x14]
push eax
jmp 0x100c53d
push 0x1b
call fcn.01006394
mov ecx, dword [0x10141c8]
push eax
call fcn.0100ee9d
push 0x10141d0
push ebx
push dword [0x10141c8]
push 0x100c2e8
push ebx
push ebx
call dword [0x1001054]
cmp eax, ebx
mov dword [0x10141cc], eax
jne 0x100c510
call dword [fcn.01001088]
push ebx
push ebx
mov esi, eax
push esi
push 0x12e
push ebx
call fcn.010064c6
mov dword [ebp - 0x18], esi
push 0x10101d0
lea eax, [ebp - 0x18]
jmp 0x100c4b2
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
inc eax
mov dword fs:[0], ecx
pop ebx
leave
ret
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x100f118
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov eax, 0x10100d2
call fcn.01003f88
sub esp, 0x28
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
mov byte [ebp - 4], 1
mov eax, dword [esi]
lea ecx, [esi + 0x44]
push ecx
push eax
call dword [0x1001008]
cmp eax, edi
jne 0x100f205
call dword [fcn.01001088]
mov ebx, eax
cmp ebx, edi
je 0x100f205
cmp ebx, 0xe8
je 0x100f1f8
cmp ebx, 0x217
je 0x100f205
cmp ebx, 0x3e5
push edi
je 0x100f1a0
push edi
push ebx
push 0x6c
push edi
call fcn.010064c6
mov dword [ebp - 0x18], ebx
push 0x10101d0
lea eax, [ebp - 0x18]
push eax
jmp 0x100f2d8
push dword [0x10141c4]
push dword [esi + 0x54]
push 0xffffffffffffffff
call fcn.0100e160
add esp, 0x10
dec eax
je 0x100f1d6
dec eax
push 0x10101d0
je 0x100f1ca
mov dword [ebp - 0x1c], 0x80100001
lea eax, [ebp - 0x1c]
jmp 0x100f19a
mov dword [ebp - 0x20], 0x80100018
lea eax, [ebp - 0x20]
jmp 0x100f19a
mov eax, dword [esi]
push 1
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [esi + 0x44]
push ecx
push eax
call dword [0x1001044]
cmp eax, edi
je 0x100f154
xor ebx, ebx
jmp 0x100f15c
push dword [esi]
call dword [0x1001010]
jmp 0x100f13f
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x34]
mov dword [esi], edi
call fcn.010067cc
lea ecx, [esi + 0x20]
call fcn.01005797
push eax
push 0x1388
mov eax, 0x200
push eax
push eax
push 0xff
push edi
push 0x40000003
push edi
lea ecx, [esi + 0x10]
call fcn.010021c5
push eax
call dword [0x100100c]
push eax
mov ecx, esi
call fcn.010067cc
mov eax, dword [esi]
cmp eax, edi
je 0x100f255
cmp eax, 0xffffffff
jne 0x100f273
mov esi, dword [esi + 4]
push edi
push edi
push esi
push 0x69
push edi
call fcn.010064c6
mov dword [ebp - 0x24], esi
push 0x10101d0
lea eax, [ebp - 0x24]
jmp 0x100f19a
push 0x2c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
mov dword [ebp - 0x2c], ecx
cmp ecx, edi
mov byte [ebp - 4], 2
je 0x100f292
push dword [ebp - 0x34]
call fcn.0100f448
jmp 0x100f294
xor eax, eax
cmp eax, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], eax
jne 0x100f2dd
mov dword [ebp - 0x28], 0x80100006
push 0x10101d0
lea eax, [ebp - 0x28]
jmp 0x100f19a
call sub.msvcrt.dll__CxxThrowException
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x100f368
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov esi, ecx
xor edi, edi
jmp 0x100f3f0
mov eax, dword [esi]
lea ecx, [esi + 0x18]
push ecx
lea ecx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push ebx
add ecx, edi
push ecx
push eax
call dword [0x10010c4]
test eax, eax
jne 0x100f3ea
call dword [fcn.01001088]
test eax, eax
je 0x100f3ea
cmp eax, 6
je 0x100f42d
cmp eax, 0x6d
je 0x100f42d
cmp eax, 0x3e5
jne 0x100f40f
push 0
push dword [0x10141c4]
push dword [esi + 0x28]
push 0xffffffffffffffff
call fcn.0100e160
add esp, 0x10
dec eax
jne 0x100f3fb
mov eax, dword [esi]
push 1
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [esi + 0x18]
push ecx
push eax
call dword [0x1001044]
test eax, eax
je 0x100f398
xor eax, eax
jmp 0x100f39e
sub ebx, dword [ebp + 0xc]
add edi, dword [ebp + 0xc]
test ebx, ebx
ja 0x100f37c
pop edi
pop esi
pop ebx
leave
ret 8
dec eax
je 0x100f41c
mov dword [ebp - 8], 0x80100001
push 0x10101d0
lea eax, [ebp - 8]
jmp 0x100f43c
mov dword [ebp - 4], eax
push 0x10101d0
lea eax, [ebp - 4]
jmp 0x100f43c
mov dword [ebp - 0xc], 0x80100018
push 0x10101d0
lea eax, [ebp - 0xc]
jmp 0x100f43c
mov dword [ebp - 0x10], 0x6d
push 0x10101d0
lea eax, [ebp - 0x10]
push eax
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x402daa
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x40a58c], 0
push esi
jne 0x402de1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x402dbb
mov dword [ecx*4 + 0x40a588], eax
inc ecx
cmp ecx, 0x100
jl 0x402db6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x402e12
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x40a588]
xor eax, esi
inc ecx
dec edx
jne 0x402df4
pop edi
not eax
pop esi
ret 0xc
Function at 0x401000
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 0
push 0xffffffffffffffff
push str._._storage_core_pythonw.exe___._storage_launcher_launcher.pyc_
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040111f
add esp, 4
mov ebx, eax
push esi
push ebx
push 0xffffffffffffffff
push str._._storage_core_pythonw.exe___._storage_launcher_launcher.pyc_
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], 0x44
push eax
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0x8000008
push 0
push 0
push 0
push ebx
push 0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push ebx
test eax, eax
jne 0x4010d7
call fcn.0040111a
add esp, 4
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040110c
mov esp, ebp
pop ebp
ret
call fcn.0040111a
add esp, 4
push 0xffffffffffffffff
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x54]
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0040110c
mov esp, ebp
pop ebp
ret

Function at 0x401954
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401993
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401993
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401993
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401993
cmp dword [ecx + 0x74], 0xe
jbe 0x401993
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407525
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 0x4075c2
push ebx
push esi
call fcn.004074ee
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.00407482
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40756f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4075c1
push edi
push eax
call fcn.00408142
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40758f
call fcn.00405fe1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4075c0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00407482
add esp, 0x20
test eax, eax
jne 0x4075ae
push edi
call fcn.00405fe1
jmp 0x4075b6
push ebx
call fcn.00405fe1
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 0x4088bf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411030
push 0x411028
push str.FlsAlloc
push 0x1f
call fcn.0040877e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4088f3
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f118]
call esi
jmp 0x4088f9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40893d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411040
push 0x411038
push str.FlsGetValue
push 0x21
call fcn.0040877e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408974
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f118]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40897c
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411048
push 0x411040
push str.FlsSetValue
push 0x22
call fcn.0040877e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4089b6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f118]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40dd80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ddad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ddad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x47aed0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46acc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.00475e30
test eax, eax
jne 0x47af3c
push ebp
push 0x485f64
mov ecx, edi
call fcn.0047a150
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.004759b0
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.004659b0
push ebx
mov dword [esp + 0x4c], ebp
call fcn.00475fe0
add esp, 4
test eax, eax
je 0x47afdf
add esi, 0x18
push esi
call fcn.00466400
add esi, eax
push esi
call fcn.00466400
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x47b2e2
jmp dword [ecx*4 + 0x417720]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.0047a290
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call fcn.00466400
add esi, eax
push esi
call fcn.00466400
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x47b030
mov ecx, dword [esi + 0x1c]
push ecx
call dword [fcn.0046e514]
test eax, eax
je 0x47b030
mov eax, 1
jmp 0x47b032
xor eax, eax
cmp ebx, 8
jge 0x47b297
cmp ebx, 7
ja 0x47b2e2
jmp dword [ebx*4 + 0x417730]
test eax, eax
jne 0x47b2aa
mov ecx, dword [esp + 0x10]
push eax
push 0x485f50
call fcn.0047a150
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.0047b7f0
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x4726a8
call fcn.00465bb0
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
Function at 0x483ea0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x49cac0]
xor edx, edx
cmp eax, edx
jne 0x483ec6
xor eax, eax
mov byte [eax + 0x49c9c0], al
inc eax
cmp eax, 0x100
jl 0x483eae
mov dword [0x49cac0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x49c9c0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x483f57
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x483f2a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x483ef8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x483fd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x484023
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x48400a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret