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

Disassembly:
sub eax, 0x3b3e9b2d
ret
and ebx, dword [edx + 0x5c]
les eax, [edi]
sbb ah, cl
xlatb
rol dword [edx + 0x779edef1], 1
mov eax, 0x3ca72061
add al, 0xf7
and byte [edi - 0x8fbd9c4], ah
xor ebx, ecx
sbb al, 0x1e
loope 0x40d1ab
cmp dword [ebx], 0x5a2ca8bc
pop ss
xchg edi, eax
or esp, dword [edx + 0x371f263c]
in eax, 0x37
scasb al, byte es:[edi]
inc esp
jecxz 0x40d216
scasb al, byte es:[edi]
jae 0x40d177
sbb ah, ah
cmc
out dx, al
push esp
out dx, eax
pop ds
stc
mov ch, byte [edi - 0x70]
leave
add al, byte [eax + 0x32]
out 0x2a, eax
add byte [edi + edi - 0x31f41185], dh
dec edx
movsd dword es:[edi], dword [esi]
retf
xchg byte [eax], bl
sbb dword [edi], ecx
invalid
fsubp st(4)
xor al, 0x76
pop edi
in al, 0xc9
jle 0x40d19b
movzx ebp, byte [ebx + 0x44]
mov edi, 0xfdaf1035
push cs
daa
mov bh, 0xe8
adc byte [edi - 0x48d8f103], ch
call 0xe14c3224
in eax, 0xc1
fcmovnb st(0), st(1)
or ah, byte [eax + 0xb]
loope 0x40d200
rcr ebx, 0xc1
push ds
xchg ecx, eax
js 0x40d20f
adc dword [eax], esi
adc ch, ch
adc byte [eax - 0x322543f0], cl
cmp ah, byte [ecx - 0x6e25be26]
xchg byte [ecx - 0x26], ah
inc ebx
mov ecx, 0xd68afc71
rcr edx, 1
inc esp
inc edi
xchg ecx, eax
salc
loope 0x40d219
or eax, 0x9912e1d8
add dword [0xdcadc122], esp
adc byte [eax], ah
scasd eax, dword es:[edi]
loopne 0x40d1f4
xchg edi, eax
dec eax
dec edi
inc edi
add eax, 0xfc65ba40
ficom word [ecx]
test dword [0xd1e4df7], 0xa7d70dd1
sub ch, ah
or eax, 0xec2aa7d7
xor ebp, dword [ebp + 0x76]
movsb byte es:[edi], byte [esi]
stc
mov al, 0x76
in eax, dx
mov al, 0x89
dec edx
xlatb
and eax, 0xe218b9d7
mov ebx, 0x1f78dbe0
jbe 0x40d2c6
add dh, cl
sub al, 0x5f
rcr bl, 0x4d
div dword [ecx + ecx*8]
and byte [0xcae99750], bl
and eax, 0x94cafddd
stosb byte es:[edi], al
inc ecx
xor eax, 0xd970041d
pop ebx
jle 0x40d265
stc
push ebp
cmp esp, ebp
dec edi
sub eax, 0x1e202b24
fcmovnu st(0), st(1)
invalid
out 0x28, al
sub edi, dword [eax - 0xf]
and esi, dword [esi - 0x44cff428]
arpl bp, sp
pop ebx
invalid
Function at 0x49521d
Capabilities:
Encode data using xor

Disassembly:
div esi
daa
mov edx, 0xef82ff57
invalid
and dword [esi + 0x60c43e55], edx
sal dword [eax - 3], 0x8c
push ebp
lea ecx, [ecx + ebp*4]
shl dword [ebp - 0x70], 0x9c
jo 0x49515a
xor al, 0x40
ror dword [eax + esi], 0xc6
cld
call 0x749e856e
mov dword [0x79b3d089], eax
nop
jno 0x495207
in al, dx
imul esp, dword [0x96a5c8cc], 0x45
inc ebx
salc
jl 0x495178
cmp al, bl
push ebp
mov dh, 0xec
sti
adc al, 0x64
inc ecx
mov dword [0x64f42b53], eax
into
movsd dword es:[edi], dword [esi]
stosb byte es:[edi], al
sbb esp, eax
and al, 0x9f
mov cl, 0x91
pushfd
test dword [edi], edi
mov al, 0x3f
pop esp
inc esi
dec edi
cmp al, 0x7e
and dword [ebx + 0x2a6d210f], ebp
inc edi
sbb al, 0x3b
std
movsb byte es:[edi], byte [esi]
xor dword [ecx + 2], ebx
jg 0x4951a1
pop ecx
add bh, byte [edi - 0x3e]
movsb byte es:[edi], byte [esi]
adc dl, byte [eax + ebp*8 + 0x44d9be73]
sub dword [edx - 0x49420ed4], 0xffffffb8
fnsave dword [edi - 0x5c05688f]
les eax, [edi - 0x49]
xchg esp, eax
mov ecx, 0x11358a0c
push 0x59
cmp esi, dword [edx + 0x72]
push 0xfe20873c
in al, dx
enter 0x3feb, 0xffffffffffffffa1
adc eax, 0xc4d47986
push ecx
xchg dword [eax], ecx
out 0x98, eax
sub eax, 0xe1a0314b
fdiv st(0), st(0)
clc
invalid
clc
add ecx, dword [ecx]
mov ch, 0x1f
add byte [edx + 0x442ecf4a], 0xf5
or eax, 0xc8a99d1c
cmp byte [ebp + 0x471527c], 0x9c
pop es
add byte [edi], ch
and ecx, dword [ebp + 0x76]
jp 0x4951d9
jl 0x4951db
jl 0x4951dc
test byte [ecx], 0x65
sub byte [ecx + ecx*2 - 0x5875c57b], bh
mov esi, 0xbe7c7348
sub dword [bx + di], ecx
sub dword [ecx], ecx
sbb esp, dword [edx - 0x33]
push cs
sbb esp, dword [edi]
stosd dword es:[edi], eax
adc dword [ecx + eax + 6], ebp
dec esp
jbe 0x495278
invalid
fbstp tbyte [ecx + 0x19]
sbb al, 0xe8
lodsb al, byte [esi]
loope 0x495251
cwde
pop ss
mov bh, byte [esi]
add edi, dword [ebp + 0x5aa045d1]
out dx, eax
and bl, byte [ecx - 2]
sub ebp, 0xffffffe6
dec edx
cmp dword [esi], ecx
inc ecx
imul ecx, dword [ecx + 0x33b8c847], 0xb
adc dword [ebp - 0x7430953f], edi
jnp 0x495253
ret 0x3d70

Function at 0x49a99d
Capabilities:
Encode data using xor

Disassembly:
adc byte [esi + 0x62], ch
mov byte [esi - 0x7816a458], ch
xor dword [ebx + edi*4 - 0x3f], edi
pop ecx
cli
inc ebp
mov edi, 0x5be278cc
invalid
Function at 0x401b4b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x401b5a
pop dword [ebp - 0x28]
mov eax, 0xcd57908f
add eax, 0x32e88acb
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0xdff97aec
add dword [ebp - 0x38], 0x6e58ca5f
mov dword [ebp - 0x34], 0xf525b2f6
sub dword [ebp - 0x34], 0xc2f266b1
mov dword [ebp - 0x30], 0x78326e88
add dword [ebp - 0x30], 0xd419d5a6
mov dword [ebp - 0x2c], 0xdc902d83
add dword [ebp - 0x2c], 0x236fd27d
lea eax, [ebp - 0x38]
push eax
mov eax, 0x352a9f2e
sub eax, 0x34e9ceda
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x9dd30719
add dword [ebp - 0x38], 0xd69f623d
mov dword [ebp - 0x34], 0x9c29af9
sub dword [ebp - 0x34], 0xc8563984
mov dword [ebp - 0x30], 0xdc8ccd69
add dword [ebp - 0x30], 0x86e29f03
mov dword [ebp - 0x2c], 0xc6e2fb3a
sub dword [ebp - 0x2c], 0xc6e2fb3a
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x35cc9
push 0
call eax
mov ecx, 0x8ef0c30e
sub ecx, 0x8ef08aaa
mov ebx, eax
mov edi, 0x966a67a4
add edi, 0x69d7485c
add edi, dword [ebp - 0x28]
mov edx, 0x19b02eb5
sub edx, 0x6c646d01
xor dword [ebp - 0x14], 0x7cb0b296
mov esi, dword [edi]
mov dword [ebp - 0xc], 0xce49ce33
add esi, edx
xor dword [ebp - 0x14], 0x8fe9e98b
mov dword [ebx], esi
sub dword [ebp - 0x20], ebx
add ebx, 0x25f680bb
add ebx, 0xda097f49
add edi, 0xac746c4c
sub edi, 0xac746c48
loop 0x401c77
add eax, 0x734193c7
add eax, 0x8cbf409c
mov ebx, eax
add eax, 0x45134dce
add eax, 0xbaecb237
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x10001730
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x1001408c]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], ebx
mov eax, dword [edi + 4]
or eax, 0x2001f
mov dword [esp + 0x10], ebx
push eax
push ecx
push dword [edi]
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], ebx
call fcn.10002915
mov esi, eax
test esi, esi
je 0x10001796
cmp dword [esp + 0xc], ebx
je 0x1000178f
push dword [esp + 0xc]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
jmp 0x10001825
lea eax, [esp + 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push ebx
mov ebx, dword [sym.imp.advapi32.dll_RegEnumKeyExW]
jmp 0x100017da
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.10002915
mov esi, eax
test esi, esi
jne 0x1000183c
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
push dword [esp + 0x28]
mov dword [esp + 0x38], 0x100
call ebx
test eax, eax
je 0x100017b1
cmp dword [esp + 0xc], 0
mov esi, dword [sym.imp.advapi32.dll_RegCloseKey]
je 0x10001804
push dword [esp + 0xc]
call esi
and dword [esp + 0xc], 0
push dword [esp + 0x1c]
and dword [esp + 0x14], 0
mov ecx, edi
call fcn.10002915
cmp dword [esp + 0xc], 0
mov edi, eax
je 0x10001823
push dword [esp + 0xc]
call esi
mov eax, edi
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000ca2a
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0xc], 0
jmp 0x10001783
Function at 0x10001b77
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x1000e018
call fcn.1000dd50
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x10001bf4
push 2
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x10001bf4
call fcn.1000127b
mov esi, eax
jmp 0x10001cfa
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x10001c17
call fcn.1000127b
jmp 0x10001ced
push ebx
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x10001c0d
push ebx
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x10001c4a
mov esi, 0x8007000e
jmp 0x10001cef
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x10001d28
jb 0x10001c65
cmp eax, 0xffffffff
ja 0x10001d28
cmp eax, 0x400
jbe 0x10001c7a
push eax
lea ecx, [ebp - 0x418]
call fcn.10002915
jmp 0x10001c9c
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x10001c9c
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x10001c40
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x10001c0d
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.10002915
mov esi, eax
test edi, edi
je 0x10001cfa
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10001d13
lea ecx, [ebp - 0x418]
call fcn.10004013
lea ecx, [ebp - 0x428]
call fcn.10003e34
mov eax, esi
call fcn.1000dca1
ret 0x10
push 0x80070216
call fcn.10002915
int3
Function at 0x10002915
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x10002924
pop dword [ebp - 0x10]
mov eax, 0x26dc51c6
sub eax, 0x16dc28a2
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x388fb
push 0
mov eax, 0x2734e837
sub eax, 0x1733f763
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0xdd572982
sub ecx, 0xdd56e403
xor ebx, ebx
add ebx, eax
mov edx, 0x3a1d50d5
sub edx, 0x2a1b8cd5
add edx, dword [ebp - 0x10]
mov edi, 0x8459d15e
mov dword [ebp - 8], 0xdfee7b09
mov esi, dword [edx]
xor dword [ebp - 0xc], 0x20aeaeb
xor esi, edi
xor dword [ebp - 8], 0x3b7be76f
mov dword [ebx], esi
xor dword [ebp - 4], 0xe6c15afd
add ebx, 0xbf6a200c
add ebx, 0x4095dff8
add edx, 4
loop 0x1000297f
add eax, 0x108cf
mov ebx, eax
add eax, 0xccb6d2a4
sub eax, 0xccb6d29f
mov ecx, 0x10000000
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x10004775
Capabilities:
Parse url

Disassembly:
push 0x4c
mov eax, 0x1000e30d
call fcn.1000dcae
mov dword [ebp - 0x1c], ecx
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x58]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x58], esi
test ebx, ebx
jne 0x100047a6
mov dword [ebp - 0x10], edi
jmp 0x100047af
push ebx
lea ecx, [ebp - 0x10]
call fcn.10002915
push 5
mov dword [ebp - 4], edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push ebx
call edi
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10004908
push 6
push ebx
mov byte [ebp - 4], 1
call edi
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x10004908
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.10004abb
mov ebx, eax
test ebx, ebx
js 0x100048ed
lea ecx, [ebp - 0x18]
call fcn.10004abb
mov ebx, eax
test ebx, ebx
js 0x100048ed
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x40], 0
je 0x100048e8
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
call ebx
cmp eax, 0x8000
ja 0x100048e8
push dword [ebp - 0x10]
call ebx
cmp eax, 6
jb 0x100048e8
lea ecx, [ebp - 0x10]
call fcn.10004abb
mov ebx, eax
test ebx, ebx
js 0x100048ed
push str.http:
lea ecx, [ebp - 0x14]
call fcn.10002915
test al, al
je 0x1000486d
push str.https:
lea ecx, [ebp - 0x18]
call fcn.10002915
test al, al
jne 0x100048e8
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x18], eax
movzx eax, word [eax]
test ax, ax
je 0x100048e8
mov ecx, eax
cmp cx, 0xd
je 0x100048e8
cmp cx, 0xa
je 0x100048e8
mov dword [ebp - 0x1c], 0x2f
lea eax, [edx + 1]
cmp word [ebp - 0x1c], cx
cmovne eax, edx
mov edx, eax
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0x18], eax
movzx eax, word [eax]
mov ecx, eax
test ax, ax
jne 0x1000487f
cmp edx, 3
jb 0x100048e8
push dword [ebp - 0x10]
xor eax, eax
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x50], eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
lea ecx, [ebp - 0x58]
push ecx
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x100048ed
mov ebx, 0x80070057
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call edi
push esi
call edi
push dword [ebp - 0x10]
call edi
mov eax, ebx
call fcn.1000dc7f
ret 4
push 0x8007000e
call fcn.10002915
int3
Function at 0x384ea7
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
test edx, edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
je 0x384ed5
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x38c7c0]
dec edx
inc ecx
test edx, edx
jne 0x384ebb
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x3889a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x3889b3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x3889af
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x3889e0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x388a1f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x388a15
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x388a21
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x388a05
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x389f4d
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 2
test eax, eax
jle 0x389f8c
push esi
movzx esi, byte [ecx]
xor ebx, ebx
dec eax
inc ecx
mov bh, byte [ecx]
or esi, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or esi, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or esi, ebx
inc ecx
xor edx, esi
test eax, eax
jg 0x389f67
pop esi
and edi, 3
xor eax, eax
dec edi
je 0x389fa8
dec edi
je 0x389fa1
dec edi
jne 0x389fad
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
pop edi
xor eax, edx
pop ebx
pop ebp
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10015c5
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x10016eb
cmp dword [ebp + 0xc], ebx
je 0x10016eb
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push 0x20006
push ebx
push 0x100128c
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
je 0x1001614
push eax
jmp 0x10016ed
mov esi, 0x1001240
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [edi + 1]
push 2
push eax
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp + 8], eax
jne 0x1001655
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01003127
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10016f8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [edi + edi + 2]
push eax
push dword [ebp + 8]
push 2
push ebx
push 0x1001218
push dword [ebp + 0xc]
call esi
cmp eax, ebx
je 0x1001696
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01003127
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 0xc], ebx
jmp 0x10016dd
push 4
pop edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push ebx
push 0x10011f8
push dword [ebp + 0xc]
mov dword [ebp - 4], 7
call esi
cmp eax, ebx
jne 0x100167c
push edi
lea eax, [ebp - 4]
push eax
push edi
push ebx
push 0x10011dc
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
call esi
cmp eax, ebx
jne 0x100167c
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
inc ebx
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, ebx
jmp 0x10016fa
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01003127
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10023ca
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1007024]
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x208], eax
mov eax, dword [ebp + 0x1c]
push 0x7e
pop ecx
mov dword [ebp - 0x218], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x204], ebx
lea edi, [ebp - 0x200]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x208]
mov dword [ebp - 0x21c], edx
push edx
push esi
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x20c], ebx
call fcn.01001cfa
test eax, eax
je 0x1002492
cmp dword [ebp - 0x20c], ebx
jne 0x1002459
push 0xa6
call fcn.01003d7f
push eax
call fcn.01002f34
jmp 0x1002492
push dword [ebp - 0x208]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
test eax, eax
je 0x100247a
push dword [ebp - 0x208]
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
jmp 0x1002487
push dword [ebp - 0x21c]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov esi, eax
cmp esi, ebx
jne 0x1002499
call fcn.01003127
xor eax, eax
jmp 0x100253c
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x214], eax
xor eax, eax
inc eax
cmp dword [ebp - 0x20c], eax
jne 0x100251b
cmp dword [ebp + 0x18], eax
jb 0x10024e8
cmp dword [ebp + 0x18], 0x3e9
ja 0x10024e8
push ebx
lea ecx, [ebp - 0x214]
push ecx
push ebx
push eax
push ebx
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
cmp eax, ebx
mov dword [ebp - 0x210], eax
jne 0x100251b
call fcn.01003127
jmp 0x100251b
push 0x3e8
push eax
push 0xa5
mov dword [ebp - 0x210], ebx
call fcn.01003d7f
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
call fcn.01002f34
push dword [ebp - 0x208]
call edi
test eax, eax
push esi
je 0x1002530
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x1002536
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01002b06
leave
ret 0x18
Function at 0x1005311
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x1007024]
and dword [ebp - 0x198], 0
cmp dword [0x1007050], 0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x19c], eax
jne 0x1005375
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100536b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100541b
mov dword [0x1007050], 1
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + 5]
push 1
push eax
call dword [sym.imp.msvcrt.dll_calloc]
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x10053a6
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.01003127
jmp 0x10053e6
push esi
push edi
push ebx
call fcn.01003207
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x198], eax
jne 0x10053cf
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push 0x800300fd
jmp 0x1005399
push 2
push 4
lea eax, [ebp - 0x198]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
mov esi, eax
test esi, esi
jne 0x10053ea
xor eax, eax
jmp 0x1005419
push edi
call dword [sym.imp.msvcrt.dll_free]
cmp dword [ebp + 0x10], 0
mov eax, dword [esi]
pop ecx
jne 0x1005408
push 0x10014d4
push eax
call dword [sym.imp.msvcrt.dll_strtok]
pop ecx
pop ecx
push 0xf
push dword [ebp - 0x19c]
push eax
call fcn.010032b2
xor eax, eax
inc eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01002b06
leave
ret 0xc

Function at 0x1005451
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x1007024]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x3f
xor edx, edx
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
cmp ebx, edx
lea edi, [ebp - 0x100]
mov dword [ebp - 0x104], edx
rep stosd dword es:[edi], eax
push 0x3f
pop ecx
lea edi, [ebp - 0x200]
mov dword [ebp - 0x204], edx
mov dword [ebp - 0x208], edx
rep stosd dword es:[edi], eax
je 0x1005540
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1005540
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
mov edi, 0x80
push 4
mov dword [ebp - 0x208], edi
call esi
push 0
push 1
push ebx
lea eax, [ebp - 0x104]
push eax
call fcn.01003955
test eax, eax
je 0x1005540
push ebx
call fcn.010050f4
cmp eax, 1
jne 0x1005510
push 0
lea eax, [ebp - 0x204]
push eax
push ebx
call fcn.01005311
test eax, eax
je 0x1005543
push 0
push 1
lea eax, [ebp - 0x204]
push eax
jmp 0x100552d
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
push 7
mov dword [ebp - 0x208], edi
call esi
push 0
push 1
push ebx
lea eax, [ebp - 0x104]
push eax
call fcn.01003955
neg eax
sbb eax, eax
inc eax
jmp 0x1005543
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01002b06
leave
ret 4