joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101632b
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
inc ebx
push 0
mov edi, ecx
mov dword [ebp - 4], ebx
call fcn.0102bc84
mov esi, eax
test esi, esi
jne 0x1016370
test byte [0x103e19c], bl
je 0x1016369
push 0x100219c
push 0x1d
push dword [0x103e194]
push dword [0x103e190]
call fcn.01008005
mov ebx, 0x3f3
jmp 0x1016399
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x10021e4
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1016399
mov eax, dword [ebp - 4]
mov dword [edi + 0x6c], eax
test byte [0x103e19c], 2
je 0x10163bb
push ebx
push 0x100219c
push 0x1e
push dword [0x103e194]
push dword [0x103e190]
call fcn.0101622b
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x10163c7
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push 0
mov dword [ebp - 8], ecx
call fcn.0102bc84
mov esi, eax
test esi, esi
jne 0x101640c
test byte [0x103e19c], 1
je 0x1016405
push 0x100219c
push 0x1f
push dword [0x103e194]
push dword [0x103e190]
call fcn.01008005
mov ebx, 0x3f3
jmp 0x1016438
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x10021e4
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1016438
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x6c], eax
test byte [0x103e19c], 2
je 0x101645a
push ebx
push 0x100219c
push 0x20
push dword [0x103e194]
push dword [0x103e190]
call fcn.0101622b
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x101651d
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
lea esi, [ecx + 0x70]
push edi
xor eax, eax
cmp dword [ebp + 8], eax
mov ecx, 0x80
mov edi, esi
rep stosd dword es:[edi], eax
je 0x101654a
push 0xff
push dword [ebp + 8]
push esi
call dword [sym.imp.msvcrt.dll_wcsncat]
add esp, 0xc
push 0
call fcn.0102bc84
mov edi, eax
test edi, edi
mov ebx, 0x100219c
jne 0x101657b
test byte [0x103e19c], 1
je 0x101659b
push ebx
push 0x2d
push dword [0x103e194]
push dword [0x103e190]
call fcn.01008005
jmp 0x101659b
push 0x200
push esi
push 1
push 0
push 0x1002204
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [0x103e19c], 2
je 0x10165bb
push dword [ebp + 8]
push ebx
push 0x2e
push dword [0x103e194]
push dword [0x103e190]
call fcn.0101622b
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x1016778
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x103ee78]
push ebx
push esi
xor bl, bl
test byte [0x103e19c], 2
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov esi, 0x100219c
je 0x10167b6
push edi
push esi
push 0x32
push dword [0x103e194]
push dword [0x103e190]
call fcn.0100802b
push 0x104
lea eax, [ebp - 0x210]
push edi
push eax
call dword [sym.imp.msvcrt.dll__wfullpath]
add esp, 0xc
test eax, eax
jne 0x10167f4
test byte [0x103e19c], 1
je 0x1016871
push edi
push esi
push 0x33
push dword [0x103e194]
push dword [0x103e190]
call fcn.0100802b
jmp 0x1016871
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1016838
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x101686f
test byte [0x103e19c], 1
je 0x1016871
lea ecx, [ebp - 0x210]
push ecx
push eax
push esi
push 0x34
push dword [0x103e194]
push dword [0x103e190]
call fcn.01016257
jmp 0x1016871
test al, 0x10
je 0x1016851
test byte [0x103e19c], 1
je 0x1016871
lea eax, [ebp - 0x210]
push eax
push esi
push 0x35
jmp 0x10167e1
test ax, 0x1005
je 0x101686f
test byte [0x103e19c], 1
je 0x1016871
lea eax, [ebp - 0x210]
push eax
push esi
push 0x36
jmp 0x10167e1
mov bl, 1
test byte [0x103e19c], 2
je 0x1016892
movzx eax, bl
push eax
push esi
push 0x37
push dword [0x103e194]
push dword [0x103e190]
call fcn.0101622b
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
pop ebx
call fcn.0102db35
leave
ret 4
Function at 0x1016a8c
Capabilities:
Check if file exists
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor eax, eax
mov esi, ecx
cmp dword [esi + 0x274], eax
mov dword [ebp - 8], eax
jne 0x1016c76
cmp dword [esi + 0x6c], eax
jne 0x1016ade
test byte [0x103e19c], 2
mov dword [ebp - 8], 2
je 0x1016c76
push 0x100219c
push 0x21
push dword [0x103e194]
push dword [0x103e190]
call fcn.01008005
jmp 0x1016c76
push ebx
lea ebx, [esi + 0x70]
cmp word [ebx], ax
jne 0x1016b18
test byte [0x103e19c], 2
mov dword [ebp - 8], 3
je 0x1016c75
push 0x100219c
push 0x22
push dword [0x103e194]
push dword [0x103e190]
call fcn.01008005
jmp 0x1016c75
cmp dword [esi + 0x270], eax
je 0x1016b3d
test byte [0x103e19c], 2
mov dword [ebp - 8], 1
je 0x1016c75
push 0x100219c
push 0x23
jmp 0x1016b02
push edi
mov edi, dword [sym.imp.msvcrt.dll__wfsopen]
push 0x40
push 0x1002224
push ebx
mov byte [ebp - 1], 0
call edi
add esp, 0xc
test eax, eax
jne 0x1016b98
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1016b6a
mov byte [ebp - 1], 1
jmp 0x1016ba0
test byte [0x103e19c], 1
je 0x1016b8c
push eax
push 0x100219c
push 0x24
push dword [0x103e194]
push dword [0x103e190]
call fcn.0101622b
mov dword [ebp - 8], 5
jmp 0x1016c74
push eax
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push 0x20
push 0x100221c
push ebx
call edi
add esp, 0xc
test eax, eax
mov dword [esi + 0x270], eax
jne 0x1016bda
test byte [0x103e19c], 1
je 0x1016b8c
push 0x100219c
push 0x25
push dword [0x103e194]
push dword [0x103e190]
call fcn.01008005
jmp 0x1016b8c
cmp byte [ebp - 1], 0
je 0x1016c27
push eax
push 1
lea eax, [ebp - 0xc]
push 2
push eax
mov dword [ebp - 0xc], 0xfeff
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x1016c27
test byte [0x103e19c], 1
je 0x1016c66
push dword [esi + 0x270]
push 0x100219c
push 0x26
push dword [0x103e194]
push dword [0x103e190]
call fcn.0101622b
jmp 0x1016c66
push 2
push 0
push dword [esi + 0x270]
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
test eax, eax
je 0x1016c74
test byte [0x103e19c], 1
je 0x1016c66
push dword [esi + 0x270]
push eax
push 0x100219c
push 0x27
push dword [0x103e194]
push dword [0x103e190]
call fcn.0100990f
mov ecx, esi
mov dword [ebp - 8], 5
call fcn.01016465
pop edi
pop ebx
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x1016ea8
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x103ee78]
push esi
push edi
push 6
pop edi
mov esi, ecx
push 0
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], edi
call fcn.0102bc84
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x1016efb
test byte [0x103e19c], 1
je 0x1016ef4
push 0x100219c
push 0x15
push dword [0x103e194]
push dword [0x103e190]
call fcn.01008005
mov eax, edi
jmp 0x10170dd
push ebx
push 4
pop edi
lea ecx, [ebp - 0x10]
push ecx
lea eax, [esi + 0x6c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov ebx, 0x10021e4
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call esi
cmp eax, 2
jne 0x1016f64
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
add eax, 0x6c
push eax
push edi
push 0
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1016f88
test byte [0x103e19c], 1
mov dword [ebp - 8], 6
je 0x10170d0
push 0x100219c
push 0x16
jmp 0x10170ab
test eax, eax
je 0x1016f88
test byte [0x103e19c], 1
mov dword [ebp - 8], 6
je 0x10170d0
push 0x100219c
push 0x17
jmp 0x10170ab
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
add ebx, 0x70
push ebx
lea eax, [ebp - 0x14]
push eax
push 0
mov edi, 0x1002204
push edi
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x200
mov dword [ebp - 0x14], 1
call esi
cmp eax, 2
jne 0x1016ffe
push dword [ebp - 0x10]
push ebx
push 1
push 0
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1017055
test byte [0x103e19c], 1
je 0x1016ff2
push 0x100219c
push 0x18
push dword [0x103e194]
push dword [0x103e190]
call fcn.01008005
mov dword [ebp - 8], 6
jmp 0x10170d0
cmp eax, 0xea
jne 0x1017034
test byte [0x103e19c], 1
je 0x10170d0
push 0xff
push 0x100219c
push 0x19
push dword [0x103e194]
push dword [0x103e190]
call fcn.0101622b
jmp 0x10170d0
test eax, eax
je 0x1017055
test byte [0x103e19c], 1
mov dword [ebp - 8], 6
je 0x10170d0
push 0x100219c
push 0x1a
jmp 0x10170ab
mov esi, dword [ebp - 0x18]
push ebx
mov ecx, esi
call fcn.01016778
test al, al
jne 0x101708f
test byte [0x103e19c], 1
mov dword [ebp - 8], 7
je 0x10170d0
push ebx
push 0x100219c
push 0x1b
push dword [0x103e194]
push dword [0x103e190]
call fcn.0100802b
jmp 0x10170d0
xor eax, eax
cmp dword [esi + 0x6c], eax
je 0x10170d0
cmp word [ebx], ax
jne 0x10170be
test byte [0x103e19c], 1
je 0x10170d0
push 0x100219c
push 0x1c
push dword [0x103e194]
push dword [0x103e190]
call fcn.01008005
jmp 0x10170d0
cmp dword [esi + 0x270], eax
jne 0x10170d0
mov ecx, esi
call fcn.01016a8c
mov dword [ebp - 8], eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0102db35
leave
ret
Function at 0x1018b42
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x103ee78]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
xor eax, eax
lea edi, [ebp - 0x80]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
xor ebx, ebx
lea eax, [ebp - 0x84]
push eax
push 0xf003f
push ebx
push ebx
push ebx
push 0x1002508
push 0x80000002
mov dword [ebp - 0x78], 2
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x84], 0xc
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
call edi
mov esi, eax
cmp esi, ebx
jne 0x1018cef
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [ebp - 0x64]
push dword [ebp - 0x70]
call edi
mov esi, eax
cmp esi, ebx
jne 0x1018cef
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xe
push 0x10024f8
push 2
push ebx
push 0x10024d8
push dword [ebp - 0x68]
call edi
mov esi, eax
cmp esi, ebx
jne 0x1018cef
push 4
lea eax, [ebp - 0x74]
push eax
push 4
push ebx
push 0x10024c8
push dword [ebp - 0x68]
mov dword [ebp - 0x74], 1
call edi
mov esi, eax
cmp esi, ebx
jne 0x1018cef
push 4
lea eax, [ebp - 0x74]
push eax
push 4
push ebx
push 0x10024ac
push dword [ebp - 0x68]
mov dword [ebp - 0x74], 1
call edi
mov esi, eax
cmp esi, ebx
jne 0x1018cef
mov edi, dword [ebp - 0x6c]
cmp edi, ebx
je 0x1018cef
jmp 0x1018c5c
mov edi, dword [ebp - 0x6c]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [edi + 8]
mov dword [ebp - 0x64], ebx
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x1018cd4
mov esi, dword [edi + 4]
lea edi, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x50]
push eax
movsd dword es:[edi], dword [esi]
call fcn.01018a66
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x4a
lea eax, [ebp - 0x50]
push eax
push 1
push ebx
push 0x10024a0
push dword [ebp - 0x64]
call esi
mov edi, dword [ebp - 0x6c]
push dword [edi + 0xc]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
push dword [edi + 0xc]
push 1
push ebx
push 0x100248c
push dword [ebp - 0x64]
call esi
mov esi, eax
cmp dword [ebp - 0x64], ebx
je 0x1018ce2
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [edi]
cmp edi, ebx
mov dword [ebp - 0x6c], edi
jne 0x1018c59
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x68], ebx
je 0x1018d04
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x70], ebx
je 0x1018d12
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.0102db35
leave
ret 8
Function at 0x102db35
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x103ee78]
jne 0x102db46
test ecx, 0xffff0000
jne 0x102db46
ret
jmp fcn.0102db50

Function at 0x102eb8a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10042e8
call fcn.0102f0cc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp word [0x1000000], 0x5a4d
jne 0x102ebd3
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x102ebd3
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x102ebec
cmp ecx, 0x20b
je 0x102ebd9
and dword [ebp - 0x1c], 0
jmp 0x102ec03
cmp dword [eax + 0x1000084], 0xe
jbe 0x102ebd3
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x102ebfd
cmp dword [eax + 0x1000074], 0xe
jbe 0x102ebd3
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 2
pop esi
push esi
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or edi, 0xffffffff
mov dword [0x103f964], edi
mov dword [0x103f968], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x103f898]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x103f894]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x103f960], eax
call fcn.0102f0c2
cmp dword [0x103ee90], 0
jne 0x102ec63
push fcn.0102f0c2
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0102f0ab
push 0x100187c
push 0x1001878
call sub.msvcrt.dll__initterm
mov eax, dword [0x103f890]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x103f88c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x1001874
push 0x100183c
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov eax, dword [eax]
test eax, eax
jne 0x102ecc8
mov dword [ebp - 4], edi
mov eax, 0xff
jmp 0x102ed77
mov dword [ebp - 0x20], eax
cmp word [eax], 0x22
jne 0x102ed09
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x102ece4
cmp cx, 0x22
jne 0x102ecd1
cmp word [eax], 0x22
jne 0x102ecef
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x102ecfd
cmp cx, 0x20
jbe 0x102ecea
test byte [ebp - 0x54], 1
je 0x102ed16
movzx ecx, word [ebp - 0x50]
jmp 0x102ed19
cmp word [eax], 0x20
jbe 0x102ecef
add eax, esi
mov dword [ebp - 0x20], eax
jmp 0x102ed09
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x1000000
call fcn.01038075
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], 0
jne 0x102ed39
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x102ed75
mov eax, esi
call fcn.0102f107
ret
Function at 0x102fc58
Capabilities:
Resolve dns
Send icmp echo request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x810
test byte [0x103e19c], 2
mov eax, dword [0x103ee78]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 0x80c], 0x80041008
mov ebx, 0x1004374
je 0x102fca4
push esi
push ebx
push 0xcb
push dword [0x103e194]
push dword [0x103e190]
call fcn.0100802b
and dword [edi], 0
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 0x400
pop ecx
jb 0x102fcc5
mov dword [ebp - 0x80c], 0x80041008
jmp 0x102fe80
mov cl, byte [esi + eax*2]
mov byte [ebp + eax - 0x404], cl
mov ecx, eax
dec eax
test ecx, ecx
jne 0x102fcc5
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x808], eax
jne 0x102fd51
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x102fd8e
test byte [0x103e19c], 4
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x808], eax
je 0x102fd51
movzx eax, byte [ebp - 0x805]
push eax
movzx eax, byte [ebp - 0x806]
push eax
movzx eax, byte [ebp - 0x807]
push eax
movzx eax, byte [ebp - 0x808]
push eax
push esi
push ebx
push 0xcc
push dword [0x103e194]
push dword [0x103e190]
call fcn.0102f247
mov eax, dword [ebp - 0x808]
mov dword [edi], eax
cmp dword [0x103f920], 0
je 0x102fdbf
test byte [0x103e19c], 2
je 0x102fd82
push ebx
push 0xce
push dword [0x103e194]
push dword [0x103e190]
call fcn.01008005
and dword [ebp - 0x80c], 0
jmp 0x102fe80
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x103e19c], 1
je 0x102fe80
push esi
push eax
push ebx
push 0xcd
push dword [0x103e194]
push dword [0x103e190]
call fcn.01016257
jmp 0x102fe80
call sub.icmp.dll_IcmpCreateFile
cmp eax, 0xffffffff
mov dword [ebp - 0x810], eax
jne 0x102fdff
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x103e19c], 1
je 0x102fe80
push eax
push ebx
push 0xcf
push dword [0x103e194]
push dword [0x103e190]
call fcn.0101622b
jmp 0x102fe80
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x102fe80
mov esi, 0x1f4
push esi
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
push 0x20
push 0x103f89c
push dword [ebp - 0x808]
push edi
push edi
push edi
push dword [ebp - 0x810]
call sub.icmp.dll_IcmpSendEcho2
test eax, eax
jne 0x102fe7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x103e19c], 2
je 0x102fe5f
push eax
push ebx
push 0xd0
push dword [0x103e194]
push dword [0x103e190]
call fcn.0101622b
cmp dword [ebp + 0xc], esi
jbe 0x102fe70
sub dword [ebp + 0xc], esi
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x102fe73
mov dword [ebp + 0xc], edi
cmp dword [ebp + 0xc], edi
jne 0x102fe0b
jmp 0x102fe80
mov dword [ebp - 0x80c], edi
test byte [0x103e19c], 2
je 0x102fea6
push dword [ebp - 0x80c]
push ebx
push 0xd1
push dword [0x103e194]
push dword [0x103e190]
call fcn.0101622b
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x80c]
pop edi
pop esi
pop ebx
call fcn.0102db35
leave
ret 0xc
Function at 0x1030153
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, eax
shr esi, 1
test eax, eax
pop ecx
je 0x10301e2
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10301e2
test al, 0xf
jne 0x10301e2
lea eax, [ecx + ecx]
cmp esi, eax
ja 0x10301e2
test eax, eax
mov ecx, dword [ebp + 0x10]
mov edx, ecx
je 0x103018f
mov byte [edx], 0
inc edx
dec eax
jne 0x1030188
xor eax, eax
test esi, esi
jbe 0x10301b0
push ebx
mov dl, byte [edi + eax*4]
mov bl, byte [edi + eax*4 + 2]
dec dl
shl dl, 4
sub bl, 0x61
or dl, bl
mov byte [eax + ecx], dl
inc eax
cmp eax, esi
jb 0x1030196
pop ebx
push 0
push esi
push ecx
call sub.ADVAPI32.dll_SystemFunction041
test eax, eax
je 0x10301ea
test byte [0x103e19c], 1
je 0x10301e2
push eax
push 0x1004374
push 0xe1
push dword [0x103e194]
push dword [0x103e190]
call fcn.0101622b
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
xor eax, eax
inc eax
jmp 0x10301e4

Function at 0x10302db
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov esi, ecx
and dword [esi + 8], 0
mov edi, 0x10044c8
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
jne 0x103032b
test byte [0x103e19c], 1
je 0x1030321
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1004374
push 0x19
push dword [0x103e194]
push dword [0x103e190]
call fcn.0100999a
pop edi
mov ecx, esi
pop esi
pop ebx
jmp fcn.0102f413
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10044bc
push ebx
call edi
push 0x10044a4
push ebx
mov dword [esi + 0xc], eax
call edi
push 0x1004494
push ebx
mov dword [esi + 0x10], eax
call edi
push 0x100447c
push ebx
mov dword [esi + 0x14], eax
call edi
push 0x1004468
push ebx
mov dword [esi + 0x18], eax
call edi
push 0x1004458
push ebx
mov dword [esi + 0x1c], eax
call edi
push 0x1004444
push ebx
mov dword [esi + 0x20], eax
call edi
push 0x1004430
push ebx
mov dword [esi + 0x24], eax
call edi
push 0x1004420
push ebx
mov dword [esi + 0x28], eax
call edi
push 0x1004404
push ebx
mov dword [esi + 0x2c], eax
call edi
push 0x10043ec
push ebx
mov dword [esi + 0x30], eax
call edi
push 0x10043d4
push ebx
mov dword [esi + 0x34], eax
call edi
xor ecx, ecx
cmp dword [esi + 0xc], ecx
mov dword [esi + 0x38], eax
je 0x10303f2
cmp dword [esi + 0x10], ecx
je 0x10303f2
cmp dword [esi + 0x14], ecx
je 0x10303f2
cmp dword [esi + 0x18], ecx
je 0x10303f2
cmp dword [esi + 0x1c], ecx
je 0x10303f2
cmp dword [esi + 0x20], ecx
je 0x10303f2
cmp dword [esi + 0x24], ecx
je 0x10303f2
cmp dword [esi + 0x28], ecx
je 0x10303f2
cmp dword [esi + 0x2c], ecx
je 0x10303f2
cmp dword [esi + 0x30], ecx
je 0x10303f2
cmp dword [esi + 0x34], ecx
je 0x10303f2
cmp eax, ecx
jne 0x103041f
test byte [0x103e19c], 1
je 0x1030413
push 0x1004374
push 0x1a
push dword [0x103e194]
push dword [0x103e190]
call fcn.01008005
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1030321
pop edi
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
pop esi
pop ebx
ret
Function at 0x1030a6c
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x103ee78]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.msvcrt.dll_wcslen]
lea edi, [eax + eax + 2]
mov eax, edi
and eax, 7
pop ecx
je 0x1030aa2
push 8
pop ecx
sub ecx, eax
add edi, ecx
mov ecx, 0x80
cmp edi, ecx
jbe 0x1030ab2
xor eax, eax
jmp 0x1030b48
lea eax, [edi + edi]
cmp eax, dword [ebp + 0xc]
jae 0x1030aab
lea eax, [ebp - 0x84]
mov byte [eax], 0
inc eax
dec ecx
jne 0x1030ac0
push ebx
push 0x40
lea eax, [ebp - 0x84]
push eax
call fcn.0100855c
push 0
push edi
lea eax, [ebp - 0x84]
push eax
call sub.ADVAPI32.dll_SystemFunction040
test eax, eax
je 0x1030b10
test byte [0x103e19c], 1
je 0x1030aab
push eax
push 0x1004374
push 0xe0
push dword [0x103e194]
push dword [0x103e190]
call fcn.0101622b
jmp 0x1030aab
xor ecx, ecx
test edi, edi
jbe 0x1030b40
mov al, byte [ebp + ecx - 0x84]
mov dl, al
shr dl, 4
and al, 0xf
movzx dx, dl
movzx ax, al
add edx, 0x61
mov word [esi + ecx*4], dx
add eax, 0x61
mov word [esi + ecx*4 + 2], ax
inc ecx
cmp ecx, edi
jb 0x1030b16
and word [esi + ecx*4], 0
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0102db35
leave
ret 0xc
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp int.00401219