joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f7ae
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040b53c
mov dword [ebp - 0x14], eax
cmp dword [0x4202b8], esi
jne 0x40f8a1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40f82e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40f981
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40f981
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f981
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4202b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4202bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4202c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4202c8], eax
test eax, eax
je 0x40f89e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4202c4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40f8c6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f8b9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40f8db
push 4
pop eax
jmp 0x40f983
cmp dword [ebp - 0x14], esi
je 0x40f8db
push dword [0x4202b8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40f8c0
mov eax, dword [0x4202c4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40f939
cmp dword [0x4202c8], edi
je 0x40f939
push eax
call ebx
push dword [0x4202c8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40f939
test eax, eax
je 0x40f939
call ecx
test eax, eax
je 0x40f92e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40f92e
test byte [ebp - 8], 1
jne 0x40f939
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40f969
mov eax, dword [0x4202bc]
cmp eax, edi
je 0x40f966
push eax
call ebx
test eax, eax
je 0x40f966
call eax
mov esi, eax
test esi, esi
je 0x40f966
mov eax, dword [0x4202c0]
cmp eax, edi
je 0x40f966
push eax
call ebx
test eax, eax
je 0x40f966
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4202b8]
call ebx
test eax, eax
je 0x40f981
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40f983
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403e3d
mov esp, ebp
pop ebp
ret
Function at 0x438cb6
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x438a14
add esi, 0xba450161
push ecx
pop ecx
call fcn.00438cf1
mov esi, 0x31e0b092
xor dword [edx], ebx
push esi
pop ecx
add esi, 1
add edx, 1
add esi, esi
cmp edx, eax
jne fcn.00438cb6
inc ecx
sub ecx, esi
ret

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

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

Function at 0x7d3dbc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7d3dc6
pushal
call 0x7d3dcc
pop ebp
sub ebp, 0x10
sub ebp, 0x3d3dbc
jmp 0x7d3de2
mov eax, 0x3d3dbc
add eax, ebp
add eax, 0x4c
mov ecx, 0x605
mov edx, 0x1eb557c9
xor byte [eax], dl
inc eax
dec ecx
jne 0x7d3df9
jmp 0x7d3e0c
inc edx
add al, 0x42
inc eax
cmc
leave
leave
leave
dec eax
or byte [ecx], dh
leave
leave
leave
retf 0x7104
Function at 0x99768c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x9976b3
call fcn.00939c18
mov dword [eax], esi
call fcn.00939c05
push 0x16
pop esi
mov dword [eax], esi
call fcn.0093a85a
mov eax, esi
jmp 0x997708
test dword [ebp + 0xc], 0xfffffff9
jne 0x997699
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9976e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00939c2b
pop ecx
call fcn.00939c05
mov eax, dword [eax]
jmp 0x997708
test al, 0x10
jne 0x997706
test al, 1
je 0x997706
test byte [ebp + 0xc], 2
je 0x997706
call fcn.00939c18
mov dword [eax], 5
call fcn.00939c05
mov dword [eax], 0xd
jmp 0x9976d7
xor eax, eax
pop esi
pop ebp
ret

Function at 0x43b649
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
push edx
pop esi
mov esi, edx
mov edx, 0x3fe1e251
call fcn.0043b68e
add edx, edx
sub esi, 1
xor dword [eax], ebx
push esi
mov esi, dword [esp]
add esp, 4
mov esi, esi
add esi, 0x84791153
add eax, 1
add edx, 0x5b283068
sub edx, edx
cmp eax, edi
jne fcn.0043b649
and esi, edx
mov edx, edx
ret
Function at 0x413ab0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x430
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebx + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
mov eax, ecx
cmp word [edi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x413ad0
mov eax, ecx
sar eax, 1
mov dword [esp + 0xa8], eax
cmp eax, 0xfffffff2
mov dword [esp + 8], ecx
jge 0x413af8
mov eax, 0xffffffff
jmp 0x413afb
lea eax, [ecx + 0x1c]
push eax
call fcn.00407fc0
add esp, 4
mov dword [esp], eax
mov dword [esp + 0x2a8], 0x4f4d4f5c
mov dword [esp + 0x2ac], 0x4f704f63
mov dword [esp + 0x2b0], 0x4f254f70
mov dword [esp + 0x2b4], 0x4f624f50
mov dword [esp + 0x2b8], 0x4f7a4f7a
mov dword [esp + 0x2bc], 0x4f644f63
mov dword [esp + 0x2c0], 0x4f0d4f62
lea eax, [esp + 0x2a8]
mov ecx, 0x8ff
movzx esi, word [eax]
lea edx, [ecx - 0x12f80000]
or edx, esi
and esi, ecx
not edx
or edx, esi
mov esi, edx
xor esi, 0xb800
or edx, 0x47ff
and esi, edx
add edx, esi
inc edx
mov word [eax], dx
add eax, 2
dec ecx
cmp ecx, 0x8f1
jne 0x413b60
movzx ecx, word [edi]
mov esi, dword [esp]
mov eax, esi
test cx, cx
je 0x413bc1
add edi, 2
mov eax, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x413bb0
mov word [eax], 0
movzx ecx, word [esp + 0x2a8]
test cx, cx
je 0x413bf1
lea edx, [esp + 0x2aa]
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x413be0
mov word [eax], 0
lea eax, [esp + 0x128]
push 0x60
push 3
push 0x120089
push eax
push esi
call fcn.0043be40
add esp, 0x14
not eax
shr eax, 0x1f
jmp dword [eax*4 + 0x4422d0]
Function at 0x40208b
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push 0
push 2
push 0x404052
push 0x404044
call dword [sym.imp.Winmm.dll_mciSendStringA]
cmp eax, 0x107
jne 0x402103
mov byte [0x404067], al
push 0x404067
push 0x404070
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
cmp eax, 1
jne 0x402103
call fcn.00403535
push edx
mov eax, eax
push 0
push 2
push 0x404052
push 0x404054
call dword [sym.imp.Winmm.dll_mciSendStringA]
pop edx
add edx, eax
push edx
push 2
push 0x404069
push 0x404070
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
pop edx
add dl, byte [0x404069]
add edx, 0x100
call edx
xor eax, eax
add esp, 0x18
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x403570
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push 0x40
push ebx
push eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
ret

Function at 0x415100
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40e015
lea edi, [esi - 0xd015]
push edi
or ebp, 0xffffffff
jmp 0x415122
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x415129
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x415118
mov eax, 1
add ebx, ebx
jne 0x41513b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x415130
jne 0x41514c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x415130
xor ecx, ecx
sub eax, 3
jb 0x415160
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4151d2
mov ebp, eax
add ebx, ebx
jne 0x41516b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x415178
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41519c
inc ecx
add ebx, ebx
jne 0x415188
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41517d
jne 0x415199
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41517d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4151bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4151ad
jmp 0x41511e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4151bc
add edi, ecx
jmp 0x41511e
pop esi
mov edi, esi
mov ecx, 0x266
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4151da
cmp byte [edi], 2
jne 0x4151da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4151df
lea edi, [esi + 0x13000]
mov eax, dword [edi]
or eax, eax
je 0x41524e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41520c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15068]
or eax, eax
je 0x415248
mov dword [ebx], eax
add ebx, 4
jmp 0x415229
call dword [esi + 0x1506c]
popal
jmp 0x4033eb
Function at 0x4e0640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401ce6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401980
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x68], ebx
mov esi, 1
mov eax, 9
cmp si, ax
jg 0x4e076c
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], 2
mov dword [ebp - 0x60], 0x406244
mov dword [ebp - 0x68], 8
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
xor eax, eax
cmp si, 9
sete al
neg eax
lea ecx, [ebp - 0x38]
mov word [ebp - 0x50], ax
lea edx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x48]
push eax
push ecx
mov dword [ebp - 0x58], 0xb
call dword [sym.imp.MSVBVM60.DLL_rtcImmediateIf]
mov eax, dword [edi]
cmp eax, ebx
je 0x4e0709
cmp word [eax], 1
jne 0x4e0709
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
movsx ebx, si
sub ebx, edx
cmp ebx, ecx
jb 0x4e0704
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
shl ebx, 2
jmp 0x4e0711
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ebx, eax
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
mov eax, dword [edi]
mov ecx, dword [eax + 0xc]
add ecx, ebx
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x38]
push ecx
lea eax, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x58]
push eax
push ecx
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov eax, 1
add esp, 0x14
add ax, si
jo 0x4e07a8
mov esi, eax
xor ebx, ebx
jmp 0x4e0685
push 0x4e0795
jmp 0x4e0794
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
Function at 0x5abc48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov eax, 0x5be430
call 0x62e968
mov dword [ebp - 0xc], 1
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call 0x63991c
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 8
mov word [ebp - 0x18], 0x14
lea edx, [ebp + 0xc]
lea eax, [ebp - 4]
call 0x63991c
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 8
mov byte [ebp - 0x29], 1
lea eax, [ebp - 4]
call fcn.005a2250
mov dword [ebp - 0x30], eax
xor edx, edx
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x30]
jge 0x5abcc5
lea eax, [ebp - 4]
call fcn.005a0698
mov edx, dword [ebp - 0x34]
mov cl, byte [ebp - 0x29]
xor byte [eax + edx], cl
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x30]
jl 0x5abca9
mov word [ebp - 0x18], 0x20
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call 0x639ab8
mov eax, dword [ebp + 8]
mov word [ebp - 0x18], 0x2c
push eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call 0x639a88
dec dword [ebp - 0xc]
lea eax, [ebp + 0xc]
mov edx, 2
call 0x639a88
pop eax
mov word [ebp - 0x18], 0x20
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret

Function at 0x5abd18
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov eax, 0x5be4b4
call 0x62e968
mov dword [ebp - 0xc], 1
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call 0x63991c
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 8
mov word [ebp - 0x18], 0x14
lea edx, [ebp + 0xc]
lea eax, [ebp - 4]
call 0x63991c
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 8
mov byte [ebp - 0x29], 2
lea eax, [ebp - 4]
call fcn.005a2250
mov dword [ebp - 0x30], eax
xor edx, edx
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x30]
jge 0x5abd95
lea eax, [ebp - 4]
call fcn.005a0698
mov edx, dword [ebp - 0x34]
mov cl, byte [ebp - 0x29]
xor byte [eax + edx], cl
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x30]
jl 0x5abd79
mov word [ebp - 0x18], 0x20
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call 0x639ab8
mov eax, dword [ebp + 8]
mov word [ebp - 0x18], 0x2c
push eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call 0x639a88
dec dword [ebp - 0xc]
lea eax, [ebp + 0xc]
mov edx, 2
call 0x639a88
pop eax
mov word [ebp - 0x18], 0x20
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

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

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

Disassembly:
pushal
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x42e006
Capabilities:
Encode data using xor

Disassembly:
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp int.00401219
Function at 0x104f9848
Capabilities:
Encode data using xor

Disassembly:
jmp 0x104f9852
pushal
call 0x104f9858
pop ebp
sub ebp, 0x10
sub ebp, 0x4f9848
mov al, byte [esp + 0x28]
cmp al, 1
je 0x104f987c
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x104f9885
mov eax, 0x4f9848
add eax, ebp
add eax, 0x63
mov ecx, 0x615
mov edx, 0x71b95ecf
xor byte [eax], dl
inc eax
dec ecx
jne 0x104f989c
jmp 0x104f98af
inc esp
add al, byte [esi + eax*2 - 0xd]
iretd
Function at 0x402bfc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x409430], esi
push edi
jne 0x402c1c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40942c], esi
mov byte [0x409428], al
jne 0x402c82
mov ecx, dword [0x409988]
test ecx, ecx
je 0x402c63
mov eax, dword [0x409984]
sub eax, 4
cmp eax, ecx
jmp 0x402c5c
mov eax, dword [eax]
test eax, eax
je 0x402c4e
call eax
mov eax, dword [0x409984]
sub eax, 4
cmp eax, dword [0x409988]
mov dword [0x409984], eax
jae 0x402c46
mov eax, 0x409028
mov esi, 0x40902c
cmp eax, esi
mov edi, eax
jae 0x402c82
mov eax, dword [edi]
test eax, eax
je 0x402c7b
call eax
add edi, 4
cmp edi, esi
jb 0x402c73
mov eax, 0x409030
mov esi, 0x409038
cmp eax, esi
mov edi, eax
jae 0x402ca1
mov eax, dword [edi]
test eax, eax
je 0x402c9a
call eax
add edi, 4
cmp edi, esi
jb 0x402c92
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x402cbb
push dword [ebp + 8]
mov dword [0x409430], 1
call fcn.00402b62
pop ebp
ret

Function at 0x402d6d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x409254]
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 + 0x409120]
je 0x402da2
inc eax
cmp eax, 0x13
jb 0x402d93
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x409120]
jne 0x402ec8
mov eax, dword [0x4093d8]
cmp eax, 1
je 0x402ea0
cmp eax, edx
jne 0x402dd2
cmp dword [0x4090e4], 1
je 0x402ea0
cmp ecx, 0xfc
je 0x402ec8
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 0x402e08
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00404330
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00401f90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x402e3c
mov eax, edi
push eax
call fcn.00401f90
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x407608
push edi
call fcn.00405050
add esp, 0x10
push edi
call fcn.00401f90
push dword [esi + 0x409124]
mov ebx, eax
call fcn.00401f90
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004038e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00404330
push edi
push ebx
call fcn.00404340
push 0x4075e8
push ebx
call fcn.00404340
push dword [esi + 0x409124]
push ebx
call fcn.00404340
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00404f4b
add esp, 0x2c
jmp 0x402ec8
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x409124]
push dword [esi]
call fcn.00401f90
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.004051a5
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x404f4b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x409568], ebx
push esi
push edi
jne 0x404fcb
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x405006
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40770c
push edi
call esi
test eax, eax
mov dword [0x409568], eax
je 0x405006
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40956c], eax
call esi
cmp dword [0x4093f0], 2
mov dword [0x409570], eax
jne 0x404fcb
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x409578], eax
je 0x404fcb
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x409574], eax
mov eax, dword [0x409574]
test eax, eax
je 0x405010
call eax
test eax, eax
je 0x404ff7
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x409578]
test eax, eax
je 0x404ff7
test byte [ebp - 8], 1
jne 0x405010
cmp dword [0x4093fc], 4
jb 0x40500a
or byte [ebp + 0x12], 0x20
jmp 0x40502f
xor eax, eax
jmp 0x40503f
or byte [ebp + 0x12], 4
jmp 0x40502f
mov eax, dword [0x40956c]
test eax, eax
je 0x40502f
call eax
mov ebx, eax
test ebx, ebx
je 0x40502f
mov eax, dword [0x409570]
test eax, eax
je 0x40502f
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x409568]
pop edi
pop esi
pop ebx
leave
ret