joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10055fc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x10092014]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
mov ebp, dword [esp + 0x98]
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp + 0x18]
mov edi, dword [eax + 0x430]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x1c]
push eax
mov eax, dword [edi + 0x13c]
push ebx
add eax, 4
push eax
push dword [edi + 0x148]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [edi + 0x134], eax
cmp dword [edi + 0x130], ebx
jne 0x10056046
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea eax, [edi + 0xb0]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x130], eax
mov esi, dword [edi + 0x134]
cmp esi, 4
jge 0x10056081
push str.Received_too_short_packet
push ebp
call fcn.10037540
add esp, 8
mov dword [edi + 0xc], 7
mov eax, ebx
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001b35e
add esp, 0x8c
ret
mov edx, dword [edi + 0x148]
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
shl eax, 8
or ecx, eax
mov dword [edi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x100560a0.1
jmp dword [ecx*4 + 0x1005618c]
cmp esi, 4
jle case.0x100560a0.4
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x144]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x100560a0.4
lea eax, [esi - 4]
push eax
lea eax, [edx + 4]
push eax
push 1
push ebp
call fcn.100387c0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je case.0x100560a0.4
push 5
push edi
call fcn.10056aa0
add esp, 8
jmp 0x10056066
movzx ecx, byte [edx + 2]
lea eax, [edx + 4]
mov dword [esp + 0x14], eax
add esi, 0xfffffffc
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
lea eax, [edx + 4]
push esi
push eax
mov dword [edi + 8], ecx
call fcn.10056b10
add esp, 8
cmp eax, esi
jae case.0x100560a0.4
push dword [esp + 0x14]
push str.TFTP_error:__s
push ebp
call fcn.10037610
jmp 0x10056161
lea eax, [esi - 2]
push eax
lea eax, [edx + 2]
push eax
push edi
call fcn.10055d70
mov ebx, eax
add esp, 0xc
test ebx, ebx
je case.0x100560a0.4
jmp 0x10056066
push str.Internal_error:_Unexpected_packet
push 0x1007dee0
push ebp
call fcn.10037540
add esp, 0xc
push ebp
call fcn.1004ad40
add esp, 4
test eax, eax
je 0x10056066
push 5
push edi
call fcn.10056aa0
add esp, 8
mov eax, 0x2a
jmp 0x10056068
Function at 0x1005d720
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x8c
mov eax, dword [0x10092014]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x9c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
mov esi, dword [edi + 0x18]
mov ebx, dword [esi + 0x1a4]
push ebx
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1005d78b
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esp + 0xc], eax
jmp 0x1005d78f
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
jne 0x1005d7bf
push str.Error_accept__ing_server_connect
push edi
call fcn.10037540
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.1001b35e
add esp, 0x8c
ret
push str.Connection_accepted_from_server
push edi
call fcn.10037610
mov byte [esi + 0x295], 0
push 1
push dword [esp + 0x18]
call fcn.1006e430
lea eax, [esp + 0x1c]
push eax
push 1
push esi
push edi
call fcn.1003f720
mov esi, eax
add esp, 0x20
test esi, esi
je 0x1005d817
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.1001b35e
add esp, 0x8c
ret
cmp dword [edi + 0x19c], 0
je 0x1005d873
push 1
push edi
call fcn.10024970
mov eax, dword [edi + 0x19c]
push 1
push dword [esp + 0x18]
push dword [edi + 0x1a0]
call eax
push 0
push edi
mov esi, eax
call fcn.10024970
add esp, 0x1c
test esi, esi
je 0x1005d873
push edi
call fcn.1005dec0
add esp, 4
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.1001b35e
add esp, 0x8c
ret
mov ecx, dword [esp + 0x94]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001b35e
add esp, 0x8c
ret
Function at 0x1005fde0
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0x18]
cmp eax, 0x64
jb 0x1005fe10
push str.Couldnt_set_desired_mode
push esi
call fcn.10037540
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x1005fe27
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.10037610
add esp, 0xc
mov al, byte [esp + 0x18]
push ebp
cmp al, 0x13
jne 0x1005fe41
push ebx
push esi
call fcn.1005faf0
add esp, 8
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp al, 0x14
jne 0x1005ff4e
mov edi, dword [esi + 0x18]
xor ebx, ebx
cmp byte [esi + 0x4b8], 2
mov dword [esp + 0x18], edi
jne 0x1005febe
mov eax, dword [esi + 0x120]
mov eax, dword [eax]
test eax, eax
je 0x1005febe
push 3
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push ecx
push ebx
push eax
call fcn.10041050
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1005ff79
push 0x2f
push dword [esp + 0x18]
call sub.VCRUNTIME140.dll_strrchr
add esp, 8
test eax, eax
je 0x1005fead
mov ebx, dword [esp + 0x14]
mov ecx, 1
sub eax, ebx
cmovne ecx, eax
mov byte [ecx + ebx], 0
jmp 0x1005feba
push dword [esp + 0x14]
call dword [0x100925a8]
add esp, 4
mov edi, dword [esp + 0x18]
mov ecx, dword [esi + 0x544]
test ecx, ecx
jne 0x1005fedc
cmp byte [esi + 0xcfd], 0
mov ecx, str.NLST
mov eax, str.LIST
cmove ecx, eax
mov edx, 0x1007eda2
test ebx, ebx
mov eax, edx
cmovne eax, ebx
push eax
mov eax, 0x1007f8e8
cmove eax, edx
push eax
push ecx
push 0x100801b8
call fcn.10041380
push ebx
mov ebp, eax
call dword [0x100925a8]
add esp, 0x14
test ebp, ebp
jne 0x1005ff19
mov edi, 0x1b
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
push ebp
push 0x1007dee0
lea eax, [edi + 0x430]
push eax
push esi
call fcn.10076340
push ebp
mov edi, eax
call dword [0x100925a8]
add esp, 0x14
test edi, edi
jne 0x1005ff79
push 0x1f
push esi
call fcn.1005de30
add esp, 8
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
cmp al, 0x15
jne 0x1005ff66
push 0xd
push 1
push esi
call fcn.1005f620
add esp, 0xc
mov edi, eax
pop ebp
pop edi
pop esi
pop ebx
ret
cmp al, 0x16
jne 0x1005ff79
push 0xe
push 1
push esi
call fcn.1005f620
add esp, 0xc
mov edi, eax
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x10078c90
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x100925a4]
mov esi, eax
add esp, 4
test esi, esi
jne 0x10078cbb
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x10078d0a
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x10078d12
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x10078d83
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x10078d40
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x10078db5
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x1008b63d
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x1008b63e
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x10078d90
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x10078dc0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.1003aaf0
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x100925a4]
mov esi, eax
add esp, 8
test esi, esi
je 0x10078f42
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x10078e42
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x10078eb3
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x10078e70
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x10078ee5
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x1008b63d
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x1008b63e
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x10078ec0
push dword [esp + 0x30]
call fcn.1003aaf0
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x10078f10
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x100925a8]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x10079010
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x10079036
mov eax, 0x1b
add esp, 0xc
ret
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x800c
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1007906e
push eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esp + 4], 0
mov eax, 2
add esp, 0xc
ret
push dword [esp + 0x18]
call fcn.1003aaf0
add esp, 4
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [esp], 0x20
jne 0x100790c5
push 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x18]
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 8]
test eax, eax
je 0x100790d4
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x100790e5
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
add esp, 0xc
ret
Function at 0x10079d20
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x10079d6c
push ebx
mov ebx, dword [esp + 0x10]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x10079d31
pop ebx
pop edi
pop esi
ret
Function at 0x412590
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x4125aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4125b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4125a0
mov eax, 1
add ebx, ebx
jne 0x4125c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4125b8
jne 0x4125d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4125b8
xor ecx, ecx
sub eax, 3
jb 0x4125e8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41265a
mov ebp, eax
add ebx, ebx
jne 0x4125f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x412600
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x412624
inc ecx
add ebx, ebx
jne 0x412610
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x412605
jne 0x412621
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412605
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x412644
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x412635
jmp 0x4125a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x412644
add edi, ecx
jmp 0x4125a6
pop esi
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x4126ac
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12708]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x127c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x412661
mov ecx, edi
jns 0x412690
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x127cc]
or eax, eax
je 0x4126a6
mov dword [ebx], eax
add ebx, 4
jmp 0x41267e
call dword [esi + 0x127c8]
mov ebp, dword [esi + 0x127d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4126e0
sub esp, 0xffffff80
jmp 0x403ac6
Function at 0x3001634c
Capabilities:
Accept command line arguments

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov cx, word [eax]
cmp cx, 0x22
push 2
pop edx
jne 0x30016370
add eax, edx
mov cx, word [eax]
cmp cx, 0x22
je 0x30016386
test cx, cx
jne 0x3001635e
jmp 0x30016390
cmp cx, 0x20
jbe 0x30016388
add eax, edx
cmp word [eax], 0x20
ja 0x30016376
jmp 0x30016388
cmp cx, 0x20
ja 0x30016390
add eax, edx
mov cx, word [eax]
test cx, cx
jne 0x30016380
and dword [0x3009c718], 0
push eax
call fcn.30019e7a
mov ecx, eax
and ecx, 0x60
je 0x300163a7
mov eax, ecx
ret
test al, 8
je 0x300163af
push 8
pop eax
ret
push esi
mov esi, 0x1eee
test esi, eax
jne 0x300163bd
xor eax, eax
pop esi
ret
xor ecx, ecx
push ebx
xor edx, edx
inc edx
shl edx, cl
test esi, edx
je 0x300163d5
test eax, edx
je 0x300163d5
mov ebx, eax
sub ebx, edx
test esi, ebx
jne 0x300163e4
inc ecx
cmp ecx, 0x20
jb 0x300163c0
test al, 4
je 0x300163e6
test ah, 1
jne 0x300163e6
xor eax, eax
pop ebx
pop esi
ret

Function at 0x300163e9
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [0x3009c718]
push esi
xor esi, esi
push esi
push esi
push esi
push 6
push eax
mov dword [0x3009a794], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [0x3009a790], eax
je 0x3001644e
cmp dword [eax], 0x9c9c
jne 0x3001644e
cmp dword [eax + 4], 0x20000
jne 0x3001644e
cmp dword [eax + 0x24], esi
je 0x3001644e
cmp dword [eax + 0x18], esi
je 0x3001644e
cmp dword [eax + 0x20], esi
je 0x3001644e
cmp dword [0x3009c728], esi
jne 0x30016438
cmp dword [eax + 0x28], esi
je 0x3001644e
push dword [eax + 0x3c]
push dword [eax + 0x34]
push dword [eax + 0x30]
push dword [eax + 0x2c]
call fcn.30024864
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x3001b386
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret 8

Function at 0x3001e7fd
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
xor eax, eax
cmp dword [ebx + 0xc], eax
je 0x3001e81f
push 0x14
push eax
push eax
push eax
push eax
push eax
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x3001e902
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.3001a034
mov eax, dword [0x3009c3d0]
xor ebp, ebp
inc ebp
cmp eax, dword [0x3009c3cc]
mov edi, 0x447
je 0x3001e889
push ebp
push 0x66
push 4
push esi
call fcn.3001c2f5
push ebp
push 0xa2
push 0x3ed
push esi
call fcn.3001c2f5
push ebp
push 0xa3
push 3
push esi
call fcn.3001c2f5
push ebp
push 0xb0
push edi
push esi
call fcn.3001c2f5
push ebp
push 0xb1
push 0x453
push esi
call fcn.3001c2f5
cmp dword [ebx + 0x34], 0
je 0x3001e8bf
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 4
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 4
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x3001e8e9
mov eax, dword [ebx + 8]
test byte [eax], 2
je 0x3001e8e9
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push ebp
push edi
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push ebp
push edi
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [esp + 0x18]
and dword [ebx + 0x28], 0
push ebx
push esi
call fcn.3001e6ea
push 0x3ec
push esi
call fcn.3001b386
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x30021229
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [section..cdata]
push edi
push 0x24
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
pop edi
jne 0x3002128c
cmp dword [ebp - 0x94], 5
jb 0x3002128c
push 0x3009c3e8
mov dword [0x3009c3e8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
inc eax
jmp 0x3002128e
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.30062f67
leave
ret
Function at 0x30021b4e
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [section..cdata]
push ebx
push esi
mov esi, dword [ebp + 0xa0]
imul esi, esi, 0x18
xor ebx, ebx
cmp dword [esi + 0x30066580], ebx
mov dword [ebp + 0x90], eax
je 0x30021b92
mov eax, dword [esi + 0x30066584]
cmp eax, dword [ebp + 0xa4]
jne 0x30021b92
xor eax, eax
inc eax
jmp 0x30021c5c
push edi
push dword [ebp + 0x9c]
mov edi, 0x104
push 0x30002c70
push 0x30002e60
lea eax, [ebp - 0x74]
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov eax, dword [esi + 0x30066590]
add esp, 0x14
cmp eax, ebx
je 0x30021be3
cmp byte [eax], bl
je 0x30021be3
push edi
lea eax, [ebp - 0x74]
push eax
push 0x30002958
call fcn.3004fd45
push edi
lea eax, [ebp - 0x74]
push eax
push dword [esi + 0x30066590]
call fcn.3004fd45
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.3003312c
test eax, eax
jne 0x30021bfc
xor eax, eax
jmp 0x30021c5b
push ebx
lea eax, [ebp - 0x7c]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [ebp - 0x80]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x30021bf8
push 4
pop edi
push edi
lea eax, [ebp + 0xa4]
push eax
push edi
push ebx
push dword [esi + 0x30066594]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x30021bf8
mov eax, dword [ebp + 0xa4]
mov dword [esi + 0x30066584], eax
xor eax, eax
inc eax
mov dword [esi + 0x30066588], edi
mov dword [esi + 0x30066580], eax
mov dword [esi + 0x3006658c], ebx
pop edi
mov ecx, dword [ebp + 0x90]
pop esi
pop ebx
call fcn.30062f67
add ebp, 0x94
leave
ret 0xc

Function at 0x3002206e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
call fcn.3004e915
mov esi, eax
push 0x106
inc esi
push esi
call fcn.3005408c
mov edi, eax
test edi, edi
je 0x300220b0
push esi
push edi
push dword [ebp + 8]
call fcn.3004fcea
lea eax, [ebp - 4]
push eax
push 0
push edi
push 0x3002201f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
leave
ret 4

Function at 0x300220c8
Capabilities:
Get file size

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x300220d8
xor eax, eax
jmp 0x30022140
push edi
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x30022132
cmp eax, edi
je 0x30022132
push edi
push eax
push edi
push 8
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 4], eax
je 0x30022132
push edi
push edi
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 8], eax
jne 0x3002212d
push ebx
push dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [esi]
mov dword [esi + 4], edi
call ebx
pop ebx
jmp 0x3002213a
xor eax, eax
inc eax
jmp 0x3002213f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x30022914
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
cmp word [0x300a2ab0], 0
je 0x30022962
push esi
push 0x300a2ab0
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x30022961
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp + 0x14]
call fcn.3004e99c
add eax, eax
push eax
push dword [ebp + 0xc]
push 0
push dword [ebp + 0x10]
push 0
push dword [ebp + 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
pop ebp
ret 0x14

Function at 0x30022c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
push edi
push 0x80
push 4
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x30022cb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov dword [ebp - 4], eax
je 0x30022ca2
cmp eax, 0x21
je 0x30022ca2
cmp eax, 0x36
jne 0x30022cdf
inc ebx
cmp ebx, 5
jge 0x30022cdf
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x30022c6b
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.3004e915
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8