joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001600
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1001a90
call fcn.010017a4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1002370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1001415
cmp eax, esi
jne 0x1001408
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1001418
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10013ef
xor esi, esi
inc esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x100142b
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001466
mov eax, dword [0x100236c]
test eax, eax
jne 0x1001460
mov dword [0x100236c], esi
push 0x10010b4
push 0x10010a8
call fcn.0100136c
pop ecx
pop ecx
test eax, eax
je 0x1001466
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1001530
mov dword [0x1002034], esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x100148a
push 0x10010a4
push 0x100109c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100236c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1001497
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1002374], ebx
je 0x10014b8
push 0x1002374
call fcn.01001719
pop ecx
test eax, eax
je 0x10014b8
push ebx
push 2
push ebx
call dword [0x1002374]
push dword [0x100201c]
push dword [0x1002020]
push dword [0x1002018]
call fcn.010012f2
add esp, 0xc
mov dword [0x1002030], eax
cmp dword [0x1002024], ebx
jne 0x1001516
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 - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1002034], ebx
jne 0x1001524
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1002030]
call fcn.010017e9
ret
call fcn.010018f1
jmp 0x10013cd

Function at 0x40b320
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422af4], 0
push esi
jne 0x40b357
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40b331
mov dword [ecx*4 + 0x422af0], eax
inc ecx
cmp ecx, 0x100
jl 0x40b32c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40b388
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422af0]
xor eax, esi
inc ecx
dec edx
jne 0x40b36a
pop edi
not eax
pop esi
ret 0xc
Function at 0x1002348
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001230
call fcn.010024e4
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1002383
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002383
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100239b
cmp eax, 0x20b
je 0x1002388
mov dword [ebp - 0x1c], edi
jmp 0x10023af
cmp dword [ecx + 0x84], 0xe
jbe 0x1002383
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10023a9
cmp dword [ecx + 0x74], 0xe
jbe 0x1002383
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1003014], 0xffffffff
or dword [0x1003018], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1003010]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100300c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100301c], eax
call fcn.010024e0
cmp dword [section..data], edi
jne 0x100240a
push fcn.010024e0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010024ce
push 0x1001144
push 0x1001140
call sub.msvcrt.dll__initterm
mov eax, dword [0x1003008]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1003004]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x100113c
push 0x1001138
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100193f
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1002481
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10024b6
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100251d
ret
Function at 0x1001e41
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001e9a
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1001e8c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x1001e88
cmp esi, eax
jae 0x1001e8c
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1001e7a
cmp esi, eax
jb 0x1001e90
xor eax, eax
jmp 0x1001e99
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x1002989
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x10029a4
push 0x80004005
call fcn.01001d4b
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x10029a6
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1002fc9
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1009004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.010028e7
mov edi, eax
cmp edi, esi
je 0x100303b
lea ecx, [ebp - 0x214]
call fcn.01002874
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01005d37
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1003059
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.01002fc9
cmp eax, esi
jne 0x10030a4
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x1003043
lea ecx, [ebp - 0x214]
call fcn.01002874
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.010027ee
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.01002874
mov eax, esi
jmp 0x100302b
Function at 0x10045a8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x418
mov eax, 0x1007575
call fcn.01005dbf
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x41c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x414], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x418], eax
cmp eax, esi
jne 0x1004601
call fcn.010026d4
mov esi, eax
jmp 0x10046e0
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x100461a
call fcn.010026d4
jmp 0x10046d2
push edi
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, esi
je 0x1004610
push edi
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
jae 0x1004676
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x100465c
lea ecx, [ebp - 0x414]
call fcn.01002f88
mov esi, 0x8007000e
lea ecx, [ebp - 0x41c]
call fcn.01002e97
mov eax, esi
call fcn.01005e13
ret 0x10
push eax
lea ecx, [ebp - 0x414]
call fcn.010035da
mov dword [ebp - 4], 1
cmp dword [ebp - 0x414], esi
jne 0x1004698
mov esi, 0x8007000e
jmp 0x10046d4
push edi
push dword [ebp - 0x414]
push edi
push ebx
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x1004610
mov edx, dword [ebp - 0x414]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x414]
lea ecx, [ebp - 0x424]
call fcn.010043d1
mov esi, eax
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x1004661
lea ecx, [ebp - 0x414]
call fcn.01002f88
jmp 0x1004661

Function at 0x1005534
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1009004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.01005475
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x10055a7
cmp dword [ebp - 0x94], 5
jb 0x10055c8
jmp 0x10055c4
cmp dword [ebp - 0x88], 1
jne 0x10055c8
cmp dword [ebp - 0x94], 4
ja 0x10055c4
jne 0x10055c8
cmp dword [ebp - 0x90], 0
jbe 0x10055c8
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1001808
call fcn.01001df1
test eax, eax
jge 0x10055e9
mov byte [0x1009074], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01005d37
leave
ret
Function at 0x1005c4d
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1007aa0
call fcn.01005c80
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x10095a0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1005a08
cmp eax, esi
jne 0x10059fb
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1005a0b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10059e2
xor esi, esi
inc esi
mov eax, dword [0x100959c]
cmp eax, esi
jne 0x1005a1e
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1005a4d
mov eax, dword [0x100959c]
test eax, eax
jne 0x1005a47
mov dword [0x100959c], esi
push 0x10011e4
push 0x10011d8
call fcn.01005944
pop ecx
pop ecx
test eax, eax
je 0x1005a4d
jmp 0x1005b71
mov dword [0x1009220], esi
mov eax, dword [0x100959c]
cmp eax, esi
jne 0x1005a71
push 0x10011d4
push 0x10011b4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100959c], 2
cmp dword [ebp - 0x20], ebx
jne 0x1005a7e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10095ac], ebx
je 0x1005a9f
push 0x10095ac
call fcn.01006109
pop ecx
test eax, eax
je 0x1005a9f
push ebx
push 2
push ebx
call dword [0x10095ac]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1005b71
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1005b09
cmp cx, bx
je 0x1005ac4
cmp dword [ebp - 0x1c], ebx
jne 0x1005b09
movzx ecx, word [eax]
cmp cx, bx
je 0x1005ad9
cmp cx, 0x20
ja 0x1005ad9
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1005ac4
test byte [ebp - 0x40], 1
je 0x1005ae5
movzx ecx, word [ebp - 0x3c]
jmp 0x1005ae8
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x100921c], eax
cmp dword [0x1009210], ebx
jne 0x1005b4e
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1005b1a
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1005aae
cmp dword [0x1009220], ebx
jne 0x1005b5c
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100921c]
jmp 0x1005b7d
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01005cc5
ret
call fcn.01006256
jmp 0x10059a5
Function at 0x10067da
Capabilities:
Get user security identifier

Disassembly:
push 0xe0
mov eax, 0x1007636
call fcn.01005dbf
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0xec], ebx
mov dword [ebp - 0xe0], eax
call fcn.01006614
test ebx, ebx
je 0x1006963
and dword [ebp - 0xd8], 0
and dword [ebp - 4], 0
mov esi, 0x80
push esi
lea ecx, [ebp - 0xd8]
call fcn.010066a1
mov ecx, dword [ebp - 0xd8]
lea eax, [edi + 0x4c]
push eax
lea eax, [ebp - 0xe8]
push eax
push ecx
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push dword [ebp - 0xe0]
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xdc], 0x44
mov dword [ebp - 0xe8], esi
call ebx
test eax, eax
jne 0x10068e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1006943
cmp dword [ebp - 0xdc], 0x44
jbe 0x100688e
push 0x80004005
call fcn.01001d4b
mov eax, dword [ebp - 0xe8]
cmp eax, esi
jbe 0x10068b2
add eax, eax
push eax
lea ecx, [ebp - 0xd8]
call fcn.010066c5
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xe4], eax
lea eax, [edi + 0x4c]
push eax
lea eax, [ebp - 0xe8]
push eax
push dword [ebp - 0xe4]
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0xec]
push dword [ebp - 0xe0]
call ebx
test eax, eax
je 0x1006943
lea eax, [ebp - 0x54]
push eax
lea eax, [edi + 4]
push eax
push dword [ebp - 0xdc]
mov byte [edi + 0x48], 1
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x1006943
push dword [ebp - 0xe4]
lea ecx, [edi + 0x54]
call fcn.01004ce9
push dword [ebp - 0xec]
lea ecx, [edi + 0x50]
call fcn.01004ce9
push dword [ebp - 0xe0]
lea ecx, [edi + 0x5c]
call fcn.01004ce9
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xd8], eax
je 0x100693f
lea ecx, [ebp - 0xd8]
call fcn.01002f88
mov al, 1
jmp 0x1006965
mov ecx, edi
call fcn.01006614
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xd8], eax
je 0x1006963
lea ecx, [ebp - 0xd8]
call fcn.01002f88
xor al, al
call fcn.01005e13
ret 8
Function at 0x10069d6
Capabilities:
Get session user name

Disassembly:
push 0x6c
mov eax, 0x100768b
call fcn.01005dbf
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov eax, dword [section..data]
mov esi, section..data
cmp eax, esi
je 0x1006a17
test byte [eax + 0x1c], 1
je 0x1006a17
cmp byte [eax + 0x19], 5
jb 0x1006a17
push 0x10018d4
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001ad5
mov eax, 0x7fff
push eax
mov ecx, edi
mov dword [ebp - 0x78], eax
call fcn.0100366d
lea ecx, [ebp - 0x78]
push ecx
push eax
push 2
call sub.SspiCli.dll_GetUserNameExW
movzx ebx, al
mov eax, dword [section..data]
cmp eax, esi
je 0x1006a5e
test byte [eax + 0x1c], 2
je 0x1006a5e
cmp byte [eax + 0x19], 4
jb 0x1006a5e
push ebx
push 0x10018d4
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001afb
push 0xffffffffffffffff
mov ecx, edi
call fcn.01006677
lea ecx, [ebp - 0x70]
call fcn.01006738
and dword [ebp - 4], 0
cmp ebx, 1
jne 0x1006b23
mov eax, dword [section..data]
cmp eax, esi
je 0x1006aa5
test byte [eax + 0x1c], 2
je 0x1006aa5
cmp byte [eax + 0x19], 4
jb 0x1006aa5
push dword [edi]
push 0x10018d4
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100652e
mov edi, dword [edi]
push 0
push edi
lea ecx, [ebp - 0x70]
call fcn.010067da
movzx ebx, al
mov eax, dword [section..data]
cmp eax, esi
je 0x1006ae2
test byte [eax + 0x1c], 2
je 0x1006ae2
cmp byte [eax + 0x19], 4
jb 0x1006ae2
push ebx
push 0x10018d4
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001afb
mov eax, dword [section..data]
cmp ebx, 1
jne 0x1006b28
lea ecx, [ebp - 0x70]
call fcn.01006972
mov edi, dword [ebp - 0x74]
push eax
mov ecx, edi
call fcn.01004ce9
mov eax, dword [section..data]
cmp eax, esi
je 0x1006b4b
test byte [eax + 0x1c], 2
je 0x1006b28
cmp byte [eax + 0x19], 4
jb 0x1006b28
push dword [edi]
push 0x10018d4
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100652e
mov eax, dword [section..data]
cmp eax, esi
je 0x1006b4b
test byte [eax + 0x1c], 1
je 0x1006b4b
cmp byte [eax + 0x19], 5
jb 0x1006b4b
push ebx
push 0x10018d4
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001afb
lea ecx, [ebp - 0x70]
call fcn.01006777
mov eax, ebx
call fcn.01005e13
ret 8
Function at 0x4014f9
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x40200c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x2c]
push eax
sub esp, 0x10
mov edi, esp
lea esi, [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
mov dword [ebp - 0x134], ebx
movsd dword es:[edi], dword [esi]
call fcn.00401467
test eax, eax
jne 0x401542
xor eax, eax
jmp 0x401611
lea eax, [ebp - 0x2c]
push eax
mov esi, 0x104
push 0x40110c
mov ecx, esi
lea edx, [ebp - 0x130]
call fcn.004011f2
pop ecx
pop ecx
test eax, eax
js 0x40153b
lea eax, [ebp - 0x134]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x130]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4015fa
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x13c]
push eax
push ebx
push ebx
push dword [ebp - 0x134]
xor edi, edi
inc edi
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x13c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4015fa
cmp dword [ebp - 0x13c], 2
mov byte [ebp - 0x2d], bl
lea eax, [ebp - 0x130]
jne 0x4015e8
push esi
push dword [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4015fa
cmp eax, esi
ja 0x4015fa
mov ebx, edi
jmp 0x4015fa
mov ecx, dword [ebp - 0x138]
call fcn.004011b5
xor ebx, ebx
test eax, eax
setns bl
cmp dword [ebp - 0x134], 0
je 0x40160f
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401a83
leave
ret 0x14
Function at 0x401627
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x40200c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 4
pop edi
xor esi, esi
push esi
push esi
push 1
push esi
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x11c], edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0x10c]
push eax
push 1
push esi
push 0x401048
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4016c4
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push 0x4010a0
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4016c4
cmp dword [ebp - 0x110], edi
jne 0x4016c4
cmp dword [ebp - 0x118], 1
jne 0x4016c4
push esi
jmp 0x4016c6
push 3
call dword [sym.imp.KERNEL32.dll_SetProcessDEPPolicy]
lea eax, [ebp - 0x108]
push eax
sub esp, 0x10
mov edi, esp
mov esi, 0x4010f0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004014f9
test eax, eax
jne 0x4016fe
mov eax, 0x401124
lea ecx, [ebp - 0x108]
call fcn.004011b5
test eax, eax
js 0x40174b
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 0x108]
push eax
call esi
mov edi, eax
test edi, edi
jne 0x401720
push 0x401124
call esi
mov edi, eax
test edi, edi
je 0x40174b
push 0x401100
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x402378], eax
test eax, eax
je 0x40174b
push dword [ebp - 0x114]
push ebx
call eax
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x40174e
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401a83
leave
ret 0x10
Function at 0x401a74
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x401f90
call fcn.00401dd4
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov edi, dword [eax + 4]
mov esi, ebx
push ebx
push edi
push 0x40236c
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x4018eb
cmp eax, edi
jne 0x4018de
xor edi, edi
inc edi
mov esi, edi
jmp 0x4018ee
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4018c2
xor edi, edi
inc edi
cmp dword [0x402370], edi
jne 0x401900
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x40192e
cmp dword [0x402370], ebx
jne 0x401928
mov dword [0x402370], edi
push 0x401018
push 0x40100c
call fcn.00401862
pop ecx
pop ecx
test eax, eax
je 0x40192e
jmp 0x401a5d
mov dword [0x40201c], edi
cmp dword [0x402370], edi
jne 0x401951
push 0x401008
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x402370], 2
test esi, esi
jne 0x401961
push ebx
push 0x40236c
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x402374], 0
je 0x401983
push 0x402374
call fcn.00401c40
pop ecx
test eax, eax
je 0x401983
push ebx
push 2
push ebx
call dword [0x402374]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x4019e0
test cl, cl
je 0x40199f
test edi, edi
jne 0x4019e0
mov al, byte [esi]
test al, al
je 0x4019af
cmp al, 0x20
ja 0x4019af
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x40199f
test byte [ebp - 0x3c], 1
je 0x4019bb
movzx eax, word [ebp - 0x38]
jmp 0x4019be
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x402018], eax
cmp dword [0x402030], 0
jne 0x401a39
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x4019f1
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x20], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x401a04
inc esi
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x401990
cmp dword [0x40201c], 0
jne 0x401a4d
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x402018]
mov dword [ebp - 4], 0xfffffffe
jmp 0x401a69
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00401e19
ret
call fcn.00401d01
jmp 0x40188b

Function at 0x401bb0
Capabilities:
Parse pe header

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