joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000838c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x10011100]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x100118d8]
je 0x100083c1
inc eax
cmp eax, 0x13
jb 0x100083b2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x100118d8]
jne 0x100084e7
mov eax, dword [0x1001241c]
cmp eax, 1
je 0x100084bf
cmp eax, edx
jne 0x100083f1
cmp dword [0x10012420], 1
je 0x100084bf
cmp ecx, 0xfc
je 0x100084e7
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x10008427
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10006f00
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.100044a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000845b
mov eax, edi
push eax
call fcn.100044a0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000e75c
push edi
call fcn.1000abe0
add esp, 0x10
push edi
call fcn.100044a0
push dword [esi + 0x100118dc]
mov ebx, eax
call fcn.100044a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.100081d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10006f00
push edi
push ebx
call fcn.10006f10
push 0x1000e758
push ebx
call fcn.10006f10
push dword [esi + 0x100118dc]
push ebx
call fcn.10006f10
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1000aae5
add esp, 0x2c
jmp 0x100084e7
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x100118dc]
push dword [esi]
call fcn.100044a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.1000391e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x10009bdb
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x10011100]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x10009c0c
xor eax, eax
jmp 0x10009d95
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10012b60]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x10009c48
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.1000c649
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x10009d23
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x10009d61
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x10009cac
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10009c9d
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x10009c7d
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x10009cec
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x10009cf5
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x10009c6e
jmp 0x10009cf7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x10009d90
cmp dword [ebp - 0x6c], edi
je 0x10009d61
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x10009d56
call fcn.10005647
mov dword [eax], 9
call fcn.10005650
mov dword [eax], esi
jmp 0x10009d8b
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x10009d4b
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x10009cf7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x10009cf7
push dword [ebp - 0x6c]
call fcn.10005659
pop ecx
jmp 0x10009d8b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x10009d79
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x10009d79
xor eax, eax
jmp 0x10009d93
call fcn.10005647
mov dword [eax], 0x1c
call fcn.10005650
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x10009d93
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.1000391e
add ebp, 0x3a0
leave
ret
Function at 0x1000a361
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x1000a535
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x10012b60]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x1000a535
test cl, 0x48
je 0x1000a3cc
cmp byte [eax + 5], 0xa
je 0x1000a3cc
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1000a41e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x1000a406
call fcn.10005647
mov dword [eax], 9
call fcn.10005650
mov dword [eax], esi
jmp 0x1000a416
cmp eax, 0x6d
je 0x1000a535
push eax
call fcn.10005659
pop ecx
or eax, 0xffffffff
jmp 0x1000a537
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x1000a530
test eax, eax
je 0x1000a445
cmp byte [ebx], 0xa
jne 0x1000a445
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x1000a44e
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x1000a52a
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x1000a51a
cmp al, 0xd
je 0x1000a480
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x1000a50c
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x1000a49a
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x1000a495
add dword [ebp + 0x10], 2
jmp 0x1000a4ee
mov dword [ebp + 0x10], eax
jmp 0x1000a508
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x1000a4c2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x1000a508
cmp dword [ebp - 0xc], 0
je 0x1000a508
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x1000a4e3
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1000a4ee
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1000a50b
cmp ebx, dword [ebp + 0xc]
jne 0x1000a4f3
cmp byte [ebp - 1], 0xa
jne 0x1000a4f3
mov byte [ebx], 0xa
jmp 0x1000a50b
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1000a1d4
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1000a50c
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x1000a464
jmp 0x1000a52a
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x1000a52a
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x1000a537
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000aae5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1001275c], ebx
push esi
push edi
jne 0x1000ab65
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000aba0
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x1001275c], eax
je 0x1000aba0
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x10012760], eax
call esi
cmp dword [0x1001259c], 2
mov dword [0x10012764], eax
jne 0x1000ab65
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1001276c], eax
je 0x1000ab65
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10012768], eax
mov eax, dword [0x10012768]
test eax, eax
je 0x1000abaa
call eax
test eax, eax
je 0x1000ab91
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1001276c]
test eax, eax
je 0x1000ab91
test byte [ebp - 8], 1
jne 0x1000abaa
cmp dword [0x100125a8], 4
jb 0x1000aba4
or byte [ebp + 0x12], 0x20
jmp 0x1000abc9
xor eax, eax
jmp 0x1000abd9
or byte [ebp + 0x12], 4
jmp 0x1000abc9
mov eax, dword [0x10012760]
test eax, eax
je 0x1000abc9
call eax
mov ebx, eax
test ebx, ebx
je 0x1000abc9
mov eax, dword [0x10012764]
test eax, eax
je 0x1000abc9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1001275c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000c6cc
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.100081d0
mov eax, dword [0x10011100]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.1000a1d4
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x1000c7ff
push 2
push esi
push dword [ebp + 8]
call fcn.1000a1d4
add esp, 0xc
cmp eax, ebx
je 0x1000c7ff
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x1000c79f
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.10009690
push 0x8000
push dword [ebp + 8]
call fcn.1000ce0e
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x1000c755
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.10009bdb
add esp, 0xc
cmp eax, 0xffffffff
je 0x1000c775
sub edi, eax
test edi, edi
jg 0x1000c74d
jmp 0x1000c78d
call fcn.10005650
cmp dword [eax], 5
jne 0x1000c78a
call fcn.10005647
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.1000ce0e
pop ecx
pop ecx
jmp 0x1000c7e7
jge 0x1000c7e7
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000a1d4
push dword [ebp + 8]
call fcn.1000995c
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x1000c7e7
call fcn.10005647
mov dword [eax], 0xd
call fcn.10005650
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.1000a1d4
add esp, 0xc
mov eax, esi
pop edi
jmp 0x1000c801
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.1000391e
leave
ret
Function at 0x1000ccd1
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.100081d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x1000cd6c
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x1001259c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x1000cd6c
cmp eax, 1
je 0x1000cd8d
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x1000cd6c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x1000cd39
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x1000cd68
xor eax, eax
inc eax
jmp 0x1000cdac
cmp edi, eax
jae 0x1000cd70
xor eax, eax
jmp 0x1000cdac
cmp eax, esi
jae 0x1000cd77
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov eax, dword [0x1001259c]
jmp 0x1000cd90
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x40ac1a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40ac29
pop dword [ebp - 0xc]
mov eax, 0x40ac29
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x6804e6c0
sub dword [ebp - 0x1c], 0x19b2a175
mov dword [ebp - 0x18], 0x7ded7bb5
sub dword [ebp - 0x18], 0x4bba2f70
mov dword [ebp - 0x14], 0x74dacc48
sub dword [ebp - 0x14], 0x288e881a
mov dword [ebp - 0x10], 0x4be6a1f5
add dword [ebp - 0x10], 0xb4195e0b
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x4cc7f051
sub eax, 0x4c872005
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x611599af
sub dword [ebp - 0x1c], 0xeca33059
mov dword [ebp - 0x18], 0xd40e74dd
sub dword [ebp - 0x18], 0x92a21368
mov dword [ebp - 0x14], 0x955188f
sub dword [ebp - 0x14], 0xa5e5ac23
mov dword [ebp - 0x10], 0x9ad0796e
add dword [ebp - 0x10], 0x652f8692
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3bd58
push 0
call eax
mov ecx, 0x9d266960
add ecx, 0x62d9e6c1
xor ebx, ebx
add ebx, eax
mov esi, 0x41b000
add esi, dword [ebp - 0xc]
mov edi, 0xdccc12b3
add edi, 0x347ac764
sub dword [ebp - 8], 0xdfd69b25
mov edx, dword [esi]
sub dword [ebp - 8], edi
add edx, edi
sub dword [ebp - 4], 0x90cc4868
mov dword [ebx], edx
xor dword [ebp - 8], 0x93203a88
add ebx, 0x461e1572
sub ebx, 0x461e156e
add esi, 0x529cfbd1
add esi, 0xad630433
loop 0x40ad3d
add eax, 0x98cef3fd
sub eax, 0x98cdc0a6
mov ebx, eax
add eax, 0x5bb11acc
sub eax, 0x5bb11ac7
mov ecx, 0x2e694bd9
add ecx, 0xd1d6b427
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x402790
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x40279e
call dword [0x497014]
or eax, eax
je 0x40279f
ret
mov al, 1
jmp fcn.0040281c

Function at 0x4027a8
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x4027b6
call dword [0x497018]
or eax, eax
jne 0x4027b7
ret
mov al, 2
jmp fcn.0040281c

Function at 0x4027c0
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [eax]
test ecx, ecx
je 0x4027f8
test edx, edx
je 0x4027e2
push eax
mov eax, ecx
call dword [0x49701c]
pop ecx
or eax, eax
je 0x4027f1
mov dword [ecx], eax
ret
mov al, 2
jmp fcn.0040281c
mov dword [eax], edx
mov eax, ecx
call dword [0x497018]
or eax, eax
jne 0x4027db
ret
mov al, 1
jmp fcn.0040281c
test edx, edx
je 0x40280c
push eax
mov eax, edx
call dword [0x497014]
pop ecx
or eax, eax
je 0x4027f1
mov dword [ecx], eax
ret

Function at 0x40281c
Capabilities:
Terminate process

Disassembly:
and eax, 0x7f
mov ecx, dword [0x49a004]
test ecx, ecx
je 0x40282c
pop edx
call ecx
dec eax
mov al, byte [eax + 0x402845]
jns 0x402840
call fcn.00406af8
mov eax, dword [eax + 4]
jmp fcn.00403b50

Function at 0x4029a4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4029d3
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403c40
jmp 0x4029f1
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.0040292c
mov edi, eax
test ebx, ebx
je 0x4029f1
cmp dword [esi], 0
je 0x4029f1
dec ebx
jmp 0x4029da
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402de0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402e78
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402e58
xor eax, eax
push ebp
push 0x402e51
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402e94
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e58
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret

Function at 0x4030f8
Capabilities:
Terminate process

Disassembly:
test eax, eax
je 0x403112
mov ecx, eax
mov ecx, dword [ecx]
cmp ecx, edx
je 0x403112
mov ecx, dword [ecx - 0x24]
test ecx, ecx
jne 0x4030fe
mov al, 0xa
jmp fcn.0040281c
ret

Function at 0x403144
Capabilities:
Terminate process

Disassembly:
cmp dword [0x49a018], 0
je 0x402a63
call dword [0x49a018]
mov eax, 0xd2
jmp fcn.00403b50
push eax
push ecx
mov eax, dword [eax]
call fcn.00403114
pop ecx
pop eax
je 0x403153
jmp ebx
pop ecx
jmp 0x402a54
Function at 0x40315c
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, edx
mov eax, dword [eax]
call fcn.00403114
mov eax, ebx
pop ebx
jne 0x403171
pop ecx
jmp 0x402a54
ret

Function at 0x403a2c
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x49a4a0
mov esi, 0x49a034
mov edi, 0x49a038
cmp byte [ebx + 0x24], 0
jne 0x403a5b
cmp dword [edi], 0
je 0x403a5b
mov edx, dword [edi]
mov eax, edx
xor edx, edx
mov dword [edi], edx
mov ebp, eax
call ebp
cmp dword [edi], 0
jne 0x403a4a
cmp dword [0x49a03c], 0
je 0x403aa2
call fcn.004039a8
cmp byte [0x49a044], 0
je 0x403a88
mov edx, 0x497024
mov eax, 0x49a218
call fcn.00406394
call fcn.00406317
jmp 0x403a9b
push 0
push 0x497044
push 0x497024
push 0
call sub.user32.dll_MessageBoxA
xor eax, eax
mov dword [0x49a03c], eax
cmp byte [ebx + 0x24], 2
jne 0x403ab2
cmp dword [esi], 0
jne 0x403ab2
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.0040387c
cmp byte [ebx + 0x24], 1
jbe 0x403ac2
cmp dword [esi], 0
je 0x403adf
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x403adf
call fcn.00405d98
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x10]
cmp edx, dword [eax + 4]
je 0x403adf
push edx
call sub.kernel32.dll_FreeLibrary
call fcn.00403854
cmp byte [ebx + 0x24], 1
jne 0x403aed
call dword [ebx + 0x28]
cmp byte [ebx + 0x24], 0
je 0x403af8
call fcn.004039f8
cmp dword [ebx], 0
jne 0x403b05
mov eax, dword [esi]
push eax
call sub.kernel32.dll_ExitProcess
mov eax, dword [ebx]
push esi
mov esi, eax
mov edi, ebx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x403aa2

Function at 0x4041c0
Capabilities:
Terminate process

Disassembly:
test edx, edx
je fcn.00404184
mov ecx, dword [edx - 4]
shr ecx, 1
je fcn.00404184
push ecx
push edx
push eax
call sub.oleaut32.dll_SysReAllocStringLen
test eax, eax
je 0x40416c
ret

Function at 0x404268
Capabilities:
Terminate process

Disassembly:
mov al, 1
jmp fcn.0040281c
test ecx, ecx
je fcn.00404184
push eax
push ecx
push edx
call sub.oleaut32.dll_SysAllocStringLen
test eax, eax
je 0x40416c
pop edx
push dword [edx]
mov dword [edx], eax
call sub.oleaut32.dll_SysFreeString
ret

Function at 0x404330
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
xor ecx, ecx
cmp al, 0xa
je 0x40436f
cmp al, 0xb
je 0x40436f
cmp al, 0xc
je 0x404379
cmp al, 0xd
je 0x40438c
cmp al, 0xe
je 0x4043aa
cmp al, 0xf
je 0x40436f
cmp al, 0x11
je 0x40436f
mov al, 2
pop edi
pop esi
pop ebx
jmp fcn.0040281c
mov dword [ebx], ecx
add ebx, 4
dec edi
jg 0x40436f
jmp 0x4043be
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
add ebx, 0x10
dec edi
jg 0x404379
jmp 0x4043be
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call fcn.00404330
dec edi
jg 0x40438f
pop ebp
jmp 0x4043be
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.00404304
dec edi
jg 0x4043ad
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4043c4
Capabilities:
Terminate process

Disassembly:
mov ecx, 1
jmp fcn.00404330

Function at 0x4043fc
Capabilities:
Terminate process

Disassembly:
push eax
push ebx
push esi
push edi
mov ebx, eax
mov esi, edx
mov edi, ecx
xor edx, edx
mov al, byte [esi]
mov dl, byte [esi + 1]
cmp al, 0xa
je 0x404443
cmp al, 0xb
je 0x40445d
cmp al, 0xc
je 0x404474
cmp al, 0xd
je 0x404483
cmp al, 0xe
je 0x4044a1
cmp al, 0xf
je 0x4044b7
cmp al, 0x11
je 0x4044c6
pop edi
pop esi
pop ebx
pop eax
mov al, 2
jmp fcn.0040281c
cmp ecx, 1
mov eax, ebx
jg 0x404454
call fcn.00403b5c
jmp 0x4044d5
mov edx, ecx
call fcn.00403b80
jmp 0x4044d5
cmp ecx, 1
mov eax, ebx
jg 0x40446b
call fcn.00404184
jmp 0x4044d5
mov edx, ecx
call fcn.0040419c
jmp 0x4044d5
mov eax, ebx
add ebx, 0x10
call fcn.00405144
dec edi
jg 0x404474
jmp 0x4044d5
push ebp
mov ebp, edx
mov edx, dword [esi + ebp + 0xa]
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov ecx, dword [esi + ebp + 6]
mov edx, dword [edx]
call fcn.004043fc
dec edi
jg 0x404486
pop ebp
jmp 0x4044d5
push ebp
mov ebp, edx
mov eax, ebx
add ebx, dword [esi + ebp + 2]
mov edx, esi
call fcn.004043d0
dec edi
jg 0x4044a4
pop ebp
jmp 0x4044d5
mov eax, ebx
add ebx, 4
call fcn.00405e60
dec edi
jg 0x4044b7
jmp 0x4044d5
mov eax, ebx
mov edx, esi
add ebx, 4
call fcn.004059f4
dec edi
jg 0x4044c6
pop edi
pop esi
pop ebx
pop eax
ret

Function at 0x4044dc
Capabilities:
Terminate process

Disassembly:
mov ecx, 1
jmp fcn.004043fc

Function at 0x4044e8
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov esi, edx
xor eax, eax
mov al, byte [ecx + 1]
lea edi, [ecx + eax + 0xa]
mov ebp, dword [edi - 4]
xor eax, eax
mov ecx, dword [edi - 8]
push ecx
mov ecx, dword [edi + 4]
sub ecx, eax
jle 0x404514
mov edx, eax
add eax, esi
add edx, ebx
call fcn.004028ec
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov edx, dword [edx]
mov cl, byte [edx]
cmp cl, 0xa
je 0x404553
cmp cl, 0xb
je 0x404564
cmp cl, 0xc
je 0x404575
cmp cl, 0xd
je 0x404586
cmp cl, 0xe
je 0x4045a6
cmp cl, 0xf
je 0x4045bf
cmp cl, 0x11
je 0x4045d0
mov al, 2
pop ebp
pop edi
pop esi
pop ebx
jmp fcn.0040281c
mov edx, dword [esi + eax]
add eax, ebx
call fcn.00403bb0
mov eax, 4
jmp 0x4045e1
mov edx, dword [esi + eax]
add eax, ebx
call fcn.004041c0
mov eax, 4
jmp 0x4045e1
lea edx, [esi + eax]
add eax, ebx
call fcn.004048a4
mov eax, 0x10
jmp 0x4045e1
xor ecx, ecx
mov cl, byte [edx + 1]
push dword [edx + ecx + 2]
push dword [edx + ecx + 6]
mov ecx, dword [edx + ecx + 0xa]
mov ecx, dword [ecx]
lea edx, [esi + eax]
add eax, ebx
call fcn.00404604
pop eax
jmp 0x4045e1
xor ecx, ecx
mov cl, byte [edx + 1]
mov ecx, dword [edx + ecx + 2]
push ecx
mov ecx, edx
lea edx, [esi + eax]
add eax, ebx
call fcn.004044e8
pop eax
jmp 0x4045e1
mov edx, dword [esi + eax]
add eax, ebx
call fcn.00405e78
mov eax, 4
jmp 0x4045e1
mov ecx, edx
mov edx, dword [esi + eax]
add eax, ebx
call fcn.00405a30
mov eax, 4
add eax, dword [edi + 4]
add edi, 8
dec ebp
jne 0x404502
pop ecx
sub ecx, eax
jle 0x4045fd
lea edx, [ebx + eax]
add eax, esi
call fcn.004028ec
pop ebp
pop edi
pop esi
pop ebx
ret