joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10022dd0
Capabilities:
Create directory
Get common file path

Disassembly:
mov eax, dword [0x1003dce8]
sub esp, 0x218
test eax, eax
push esi
mov esi, ecx
jne 0x10022dec
xor eax, eax
pop esi
add esp, 0x218
ret
push ebx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x120]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x120]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
rep stosd dword es:[edi], eax
mov ecx, dword [0x1003dce8]
lea edx, [esp + 0x120]
push ecx
push edx
lea eax, [esp + 0x24]
push 0x100303fc
push eax
call ebx
lea ecx, [esp + 0x2c]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x18
test eax, eax
je 0x10022e61
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
add esi, 4
mov ecx, 0x41
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 8
call dword [sym.imp.MSVCRT.dll_rand]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x16]
push eax
mov eax, dword [esp + 0x18]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1a]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x1a]
push eax
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
push str._s_04d_02d_02d_02d_02d_02d__08x.tmp
push esi
call ebx
add esp, 0x28
mov eax, 1
pop edi
pop ebx
pop esi
add esp, 0x218
ret

Function at 0x10022f00
Capabilities:
Move file

Disassembly:
push ebx
push ebp
mov ebx, ecx
call fcn.10022dd0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
lea ebp, [ebx + 4]
push eax
push ecx
push ebp
call fcn.1000eda0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x10022f93
push esi
add ebx, 0x108
push edi
mov ecx, 0x41
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffb
mov esi, ebp
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1c]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
test eax, eax
push ebx
je 0x10022f6a
push str._s.a
jmp 0x10022f6f
push str._s.v
push ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push ebx
push ebp
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
test eax, eax
je 0x10022f8f
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
ret 0xc
Function at 0x100271c0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor edi, edi
push 0x50
push ebx
mov dword [ebx + 4], edi
mov dword [esp + 0x14], edi
call fcn.10027050
mov esi, eax
add esp, 8
cmp esi, edi
jne 0x100271f8
mov eax, dword [ebx]
push ebx
mov dword [eax + 0x14], 0x35
mov ecx, dword [ebx]
mov dword [ecx + 0x18], edi
mov edx, dword [ebx]
call dword [edx]
add esp, 4
mov dword [esi], fcn.100272e0
mov dword [esi + 4], fcn.100273f0
mov dword [esi + 8], 0x100274c0
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], 0x10027570
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], fcn.1002ac90
mov dword [esi + 0x28], 0x1002ad90
mov eax, dword [esp + 0xc]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x3c]
mov ecx, 2
mov dword [eax - 8], edi
mov dword [eax], edi
sub eax, 4
dec ecx
jne 0x1002723f
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], 0x50
push str.JPEGMEM
mov dword [ebx + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
cmp eax, edi
je 0x100272d1
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x100272d1
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x1002729a
cmp al, 0x4d
jne 0x100272be
mov eax, dword [esp + 0xc]
pop edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x9c4de0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xb1a4eb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0xb76150]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], 0xb2029c
call fcn.00b0ad2a
push 4
mov dword [ebp - 4], 0
call fcn.009ee354
mov edi, eax
add esp, 4
test edi, edi
je 0x9c4e60
call fcn.00b0a2cb
mov dword [edi], eax
call fcn.00b0a08a
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00b09fbf
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x9c4e56
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00b09fe7
jmp 0x9c4e62
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x9d35d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0xb0cb19
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
xor eax, eax
mov dword [esi], eax
mov dword [esp + 4], esi
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov dword [esp + 0x2c], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov ecx, 0xf
mov dword [esi + 0x38], ecx
mov dword [esi + 0x34], eax
mov byte [esi + 0x24], al
push eax
mov dword [esp + 0x20], ecx
push 0xb4d68c
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 2
mov dword [esp + 0x20], eax
mov byte [esp + 0x10], al
call fcn.009b5de0
lea eax, [esp + 8]
push eax
mov byte [esp + 0x30], 3
call fcn.009e5dd0
add esp, 4
cmp dword [esp + 0x1c], 0x10
mov dword [esi + 0xc], eax
jb 0x9d3660
mov ecx, dword [esp + 8]
push ecx
call fcn.009ee38e
add esp, 4
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x9dace0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
cmp dword [edx], 0
jle 0x9dad19
mov ecx, dword [esp + 4]
mov al, byte [ecx]
cmp al, 1
jne 0x9dad0f
mov eax, 1
mov byte [ecx], 0
cmp dword [edx], eax
jle 0x9dad13
nop
xor byte [eax + ecx], 0x9c
inc eax
cmp eax, dword [edx]
jl 0x9dad00
dec dword [edx]
lea eax, [ecx + 1]
ret
test al, al
jne 0x9dad19
dec dword [edx]
lea eax, [ecx + 1]
ret
xor eax, eax
ret
Function at 0x9dd2b0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0xb0d614
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
xor ebx, ebx
push ebp
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x44]
cmp dword [eax + 0x14], 0x10
push esi
push edi
jb 0x9dd2de
mov eax, dword [eax]
push 0xb205a0
push eax
call fcn.00aef9d8
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x9dd30b
mov eax, dword [esp + 0x48]
mov dword [eax], ebx
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push 2
push ebx
push edi
call fcn.00aef8a0
push edi
call fcn.00aef7b1
push ebx
push ebx
push edi
mov ebp, eax
call fcn.00aef8a0
push 0x14
call fcn.009ee354
add esp, 0x20
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], 1
cmp eax, ebx
je 0x9dd354
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ebp
mov dword [ecx], ebx
push ebx
mov ecx, eax
call fcn.009da860
mov esi, eax
jmp 0x9dd356
xor esi, esi
mov dword [esp + 0x18], esi
cmp esi, ebx
je 0x9dd36a
lea eax, [esi + 4]
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [esi + 8]
push edi
push 1
push ebp
push eax
mov dword [esp + 0x50], 2
call fcn.00aef600
add esp, 0x10
push edi
test eax, eax
jne 0x9dd3cf
call fcn.00aedccf
mov edi, dword [esp + 0x4c]
add esp, 4
mov dword [edi], ebx
mov dword [esp + 0x10], 1
mov byte [esp + 0x40], bl
or edx, 0xffffffff
lea eax, [esi + 4]
lock xadd dword [eax], edx
cmp edx, 1
jne 0x9dd3ba
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
call fcn.00aedccf
add esp, 4
push 4
push 0xb201a4
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.009b5de0
push 1
push ecx
mov eax, esp
lea edi, [esi + 4]
mov byte [esp + 0x48], 3
mov dword [esp + 0x1c], esp
mov dword [eax], esi
mov ecx, edi
mov edx, 1
lock xadd dword [ecx], edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.009cfec0
add esp, 0x10
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x40], 2
jb 0x9dd440
mov edx, dword [esp + 0x1c]
push edx
call fcn.009ee38e
add esp, 4
mov eax, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
mov dword [ebp], eax
cmp eax, ebx
je 0x9dd45f
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], 1
cmp eax, ebx
je 0x9dd487
mov ecx, eax
or edx, 0xffffffff
add eax, 4
lock xadd dword [eax], edx
cmp edx, 1
jne 0x9dd487
cmp ecx, ebx
je 0x9dd487
mov eax, dword [ecx]
push edx
mov edx, dword [eax]
call edx
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x40], bl
or eax, 0xffffffff
lock xadd dword [edi], eax
cmp eax, 1
jne 0x9dd4a4
mov edx, dword [esi]
push eax
mov eax, dword [edx]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x38]
pop edi
pop esi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x34
ret
Function at 0x9df950
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0xb0d8bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov ebp, dword [ebx + 0x10]
push esi
mov esi, ecx
mov eax, dword [esi + 6]
mov ecx, dword [esi]
push edi
mov edi, eax
and ecx, 0xfffffff
and eax, 0xfffffff
sub eax, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x34]
add ebp, ecx
push eax
mov ecx, ebx
and edi, 0xf0000000
call fcn.009db480
mov ecx, dword [eax]
movzx eax, word [esi + 4]
xor edx, edx
cmp dx, ax
jg 0x9df9d0
mov edx, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
sub ecx, edx
sar ecx, 2
cmp ax, cx
jge 0x9df9d0
cwde
mov ecx, dword [edx + eax*4]
mov dword [esp + 0x10], ecx
jmp 0x9df9d8
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x9df9fb
or edx, 0xffffffff
lea eax, [ecx + 4]
lock xadd dword [eax], edx
cmp edx, 1
jne 0x9df9fb
test ecx, ecx
je 0x9df9fb
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [0xb7d8e0]
mov edx, dword fs:[0x2c]
mov eax, dword [edx + ecx*4]
lea ecx, [eax + 0x34]
push ecx
lea edx, [eax + 0x30]
push edx
lea ecx, [eax + 0x2c]
push ecx
lea edx, [eax + 0x28]
push edx
mov dword [esp + 0x44], 0
call fcn.009de810
mov ecx, eax
call fcn.009dd770
mov esi, eax
mov dword [esp + 0x18], esi
xor ecx, ecx
mov dword [esp + 0x28], ecx
cmp esi, ecx
je 0x9dfa6f
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
push eax
mov ecx, ebx
call fcn.009db480
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push edi
push ecx
push ebp
push edx
mov ecx, esi
call fcn.009df630
mov ecx, eax
mov eax, dword [esp + 0x30]
mov dword [eax], ecx
test ecx, ecx
je 0x9dfa85
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 8
Function at 0x9dfcc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0xb0d8bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], 0
mov eax, dword [esi + 0x34]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
push edi
add ecx, 0xfffffffb
push ecx
add eax, 5
push eax
lea ecx, [esi + 0x24]
call fcn.009dd5c0
mov ecx, dword fs:[0x2c]
lea edi, [eax + 5]
mov eax, dword [0xb7d8e0]
mov eax, dword [ecx + eax*4]
lea edx, [eax + 0x34]
push edx
lea ecx, [eax + 0x30]
push ecx
lea edx, [eax + 0x2c]
push edx
lea eax, [eax + 0x28]
push eax
call fcn.009de810
mov ecx, eax
call fcn.009dd770
mov dword [esp + 8], eax
mov dword [esp + 0x18], 0
test eax, eax
je 0x9dfd84
push ecx
mov ecx, esp
mov dword [ecx], esi
mov dword [esp + 0x10], esp
lea ecx, [esi + 4]
mov edx, 1
lock xadd dword [ecx], edx
mov ecx, dword [esi + 0x34]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
add esi, 8
cmp dword [esi + 0x14], 0x10
jb 0x9dfd70
mov esi, dword [esi]
push 0
sub edx, edi
push edx
add ecx, edi
push ecx
push esi
mov ecx, eax
call fcn.009df630
mov ecx, eax
jmp 0x9dfd86
xor ecx, ecx
mov eax, dword [esp + 0x20]
mov dword [eax], ecx
test ecx, ecx
je 0x9dfd9c
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
mov ecx, dword [esp + 0x10]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret 4
Function at 0x9e0080
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0xb0d924
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x30]
cmp dword [eax + 0xc], 5
mov ebx, 1
mov dword [esp + 0x20], ebx
jl 0x9e018f
mov ecx, dword [eax + 8]
cmp dword [ecx], 0x62a14e45
jne 0x9e018f
push 0x38
call fcn.009ee354
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x20], 2
test eax, eax
je 0x9e010e
push ecx
mov ecx, dword [esp + 0x34]
mov edx, esp
mov dword [edx], ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x18], esp
test edx, edx
je 0x9e00fe
add edx, 4
mov ecx, ebx
lock xadd dword [edx], ecx
mov edx, dword [esp + 0x30]
push edx
mov ecx, eax
call fcn.009dc3f0
mov esi, eax
jmp 0x9e0110
xor esi, esi
mov dword [esp + 0x14], esi
test esi, esi
je 0x9e0121
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
mov edi, dword [esp + 0x28]
push edi
mov ecx, esi
mov byte [esp + 0x24], 3
call fcn.009dfcc0
mov dword [esp + 0xc], ebx
mov byte [esp + 0x20], bl
test esi, esi
je 0x9e0155
or edx, 0xffffffff
lea eax, [esi + 4]
lock xadd dword [eax], edx
cmp edx, ebx
jne 0x9e0155
mov edx, dword [esi]
mov eax, dword [edx]
push ebx
mov ecx, esi
call eax
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x20], 0
test ecx, ecx
je 0x9e017b
or edx, 0xffffffff
lea eax, [ecx + 4]
lock xadd dword [eax], edx
cmp edx, ebx
jne 0x9e017b
test ecx, ecx
je 0x9e017b
mov edx, dword [ecx]
mov eax, dword [edx]
push ebx
call eax
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
mov esi, dword [esp + 0x28]
mov ecx, eax
mov dword [esi], 0
mov dword [esp + 0xc], ebx
mov byte [esp + 0x20], 0
or edx, 0xffffffff
add eax, 4
lock xadd dword [eax], edx
cmp edx, ebx
jne 0x9e01bd
test ecx, ecx
je 0x9e01bd
mov eax, dword [ecx]
mov edx, dword [eax]
push ebx
call edx
mov ecx, dword [esp + 0x18]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret
Function at 0x9e5320
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0xb0decc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0xb20940
mov dword [esp + 0x20], 0
lea ebp, [esi + 4]
mov edi, ebp
push edi
mov dword [esp + 0x14], edi
call dword [fcn.00b1f40c]
mov ecx, esi
mov byte [esp + 0x20], 5
call fcn.009e51a0
push edi
call dword [fcn.00b1f408]
lea edi, [esi + 0x48]
mov dword [esp + 0x10], edi
mov eax, dword [edi + 4]
mov ecx, dword [eax]
push eax
push ecx
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
mov byte [esp + 0x2c], 6
call fcn.009e4f10
mov edi, dword [edi + 4]
push edi
call fcn.009ee38e
lea edi, [esi + 0x38]
add esp, 4
mov dword [esp + 0x14], edi
mov eax, dword [edi + 4]
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
mov byte [esp + 0x2c], 7
call fcn.009e15b0
mov edx, dword [edi + 4]
push edx
call fcn.009ee38e
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x9e53da
mov eax, dword [esi + 0x1c]
push eax
call fcn.009ee38e
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], 0
push ebp
mov byte [esi + 0x1c], 0
call dword [fcn.00b1f410]
mov ecx, dword [esp + 0x18]
pop edi
mov dword [esi], 0xb20880
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x9e6cf0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 0x10
jb 0x9e6cfe
mov ecx, dword [eax]
jmp 0x9e6d00
mov ecx, eax
mov edx, dword [eax + 0x10]
add edx, ecx
mov eax, 0x811c9dc5
cmp ecx, edx
je 0x9e6d21
push esi
nop
movsx esi, byte [ecx]
imul eax, eax, 0x1000193
inc ecx
xor eax, esi
cmp ecx, edx
jne 0x9e6d10
pop esi
and eax, 0x7fffffff
push 0x1f31d
push eax
call fcn.00aefbfe
imul eax, eax, 0xb14
imul edx, edx, 0x41a7
add esp, 8
sub edx, eax
mov eax, edx
jns 0x9e6d4b
add eax, 0x7fffffff
ret 4

Function at 0xac9ba1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.009f7bd0
call fcn.009efa00
cmp eax, esi
pop esi
jne 0xac9bbd
mov ecx, 0xb7a210
jmp fcn.00a06b13
ret
Function at 0x4071a1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4071e0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4071e0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4071e0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4071e0
cmp dword [ecx + 0x74], 0xe
jbe 0x4071e0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40cd33
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 0x40cdd0
push ebx
push esi
call fcn.0040ccfc
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.0040cc90
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40cd7d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40cdcf
push edi
push eax
call fcn.0040d950
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40cd9d
call fcn.0040b7f1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40cdce
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040cc90
add esp, 0x20
test eax, eax
jne 0x40cdbc
push edi
call fcn.0040b7f1
jmp 0x40cdc4
push ebx
call fcn.0040b7f1
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 0x40e0cd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x463a28
push 0x463a20
push str.FlsAlloc
push 0x1f
call fcn.0040df8c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e101
push dword [ebp + 8]
mov ecx, esi
call dword [0x417174]
call esi
jmp 0x40e107
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40e14b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x463a38
push 0x463a30
push str.FlsGetValue
push 0x21
call fcn.0040df8c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e182
push dword [ebp + 8]
mov ecx, esi
call dword [0x417174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40e18a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x463a40
push 0x463a38
push str.FlsSetValue
push 0x22
call fcn.0040df8c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e1c4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x417174]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x413620
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41364d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41364d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x401443
pop dword [ebp - 0x40]
mov eax, 0x35503d79
sub eax, 0x35102936
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x56c0ed1e
add dword [ebp - 0x50], 0xf791582d
mov dword [ebp - 0x4c], 0x26c7903a
add dword [ebp - 0x4c], 0xb6bbc0b
mov dword [ebp - 0x48], 0xb8c3719a
sub dword [ebp - 0x48], 0x6c772d6c
mov dword [ebp - 0x44], 0xd43f108c
sub dword [ebp - 0x44], 0xd43f108c
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xfe9232ec
sub dword [ebp - 0x50], 0x8a1fc996
mov dword [ebp - 0x4c], 0xe4dc7452
add dword [ebp - 0x4c], 0x5c8fed23
mov dword [ebp - 0x48], 0x4195dd93
add dword [ebp - 0x48], 0x21d98ed9
mov dword [ebp - 0x44], 0x27e951b1
add dword [ebp - 0x44], 0xd816ae4f
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xd2b143dc
sub eax, 0xd270c2dc
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x35532
push 0
call eax
mov ecx, 0xca6e06e9
sub ecx, 0xca6dcac6
mov esi, eax
mov edi, 0x46e400
add edi, dword [ebp - 0x40]
mov ebx, 0xbf952f34
sub ebx, 0xa6254a1d
add dword [ebp - 0x14], 0xf8207070
mov edx, dword [edi]
add dword [ebp - 0x2c], esi
add edx, ebx
sub dword [ebp - 4], esi
mov dword [esi], edx
xor dword [ebp - 0x38], ecx
add esi, 0xf09a453b
add esi, 0xf65bac9
add edi, 0xdb2d7edf
add edi, 0x24d28125
loop 0x40155a
add eax, 0xe35f
mov ebx, eax
add eax, 0xfc9c181e
sub eax, 0xfc9c1819
mov ecx, 0x768084d2
sub ecx, 0x764084d2
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27