joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10029fb4
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x21c
mov eax, 0x1002ff54
call fcn.1002b85a
mov eax, dword [ebp + 8]
mov dword [ebp - reloc.advapi32.dll_TraceMessage], eax
xor eax, eax
xor edi, edi
push 0x206
mov word [ebp - 0x218], ax
lea eax, reloc.advapi32.dll_TraceMessage
push edi
push eax
mov esi, edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, reloc.advapi32.dll_TraceMessage
push eax
push 0x108
push edi
push 0x10006bd0
push 0x80000002
mov dword [ebp - reloc.advapi32.dll_TraceMessage], edi
mov dword [ebp - reloc.advapi32.dll_TraceMessage], edi
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
je 0x1002a034
mov esi, eax
jle 0x1002a1ad
and esi, 0xffff
or esi, 0x80070000
jmp 0x1002a1ad
mov ebx, edi
push edi
push edi
push edi
push edi
lea eax, reloc.advapi32.dll_TraceMessage
push eax
lea eax, reloc.advapi32.dll_TraceMessage
push eax
push ebx
push dword [ebp - 0x21c]
mov dword [ebp - reloc.advapi32.dll_TraceMessage], 0x104
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x1002a1ad
test eax, eax
jne 0x1002a177
lea eax, reloc.advapi32.dll_TraceMessage
push eax
call fcn.1001911a
push 0xc
call fcn.1001911a
pop ecx
mov dword [ebp - reloc.advapi32.dll_TraceMessage], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x1002a09c
mov ecx, eax
call fcn.10004f6b
mov edi, eax
or dword [ebp - 4], reloc.advapi32.dll_TraceMessage
mov dword [ebp - reloc.advapi32.dll_TraceMessage], edi
test edi, edi
je 0x1002a139
lea eax, reloc.advapi32.dll_TraceMessage
push eax
mov ecx, edi
call fcn.1000503e
mov esi, eax
test esi, esi
js 0x1002a10b
mov ecx, dword [ebp - reloc.advapi32.dll_TraceMessage]
lea eax, reloc.advapi32.dll_TraceMessage
push eax
call fcn.1000f2a1
mov esi, eax
test esi, esi
js 0x1002a0ef
inc ebx
push 0
pop edi
cmp ebx, 0x1f4
jae 0x1002a1ad
jmp 0x1002a036
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1002a163
test byte [eax + 0x1c], 1
je 0x1002a163
push esi
push 0x1000c1d4
push 0x15
jmp 0x1002a158
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1002a163
test byte [eax + 0x1c], 1
je 0x1002a163
push esi
lea ecx, reloc.advapi32.dll_TraceMessage
push ecx
push 0x1000c1d4
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001911a
jmp 0x1002a163
mov esi, 0x8007000e
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1002a163
test byte [eax + 0x1c], 1
je 0x1002a163
push esi
push 0x1000c1d4
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001911a
test edi, edi
je 0x1002a1ad
mov ecx, edi
call fcn.10004fde
push edi
call fcn.1001911a
pop ecx
jmp 0x1002a1ad
mov esi, eax
jle 0x1002a187
and esi, 0xffff
or esi, 0x80070000
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1002a1ad
test byte [eax + 0x1c], 1
je 0x1002a1ad
push esi
push ebx
push 0x1000c1d4
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001911a
cmp dword [ebp - reloc.advapi32.dll_TraceMessage], 0
je 0x1002a1c2
push dword [ebp - 0x21c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
call fcn.1002b897
ret 4
Function at 0x10003790
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
push 0x400
mov dword [esi], vtable.CPortController.0
call fcn.100044bb
add esp, 4
test eax, eax
mov dword [esi + 0x18], eax
jne 0x100037b3
push eax
call fcn.100043e0
mov ecx, 1
mov eax, 0x7d0
push 3
mov dword [esi + 8], ecx
mov dword [esi + 0x10], ecx
push 3
mov ecx, esi
mov dword [esi + 0x24], 0xffffffff
mov dword [esi + 4], 0xa
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], eax
call fcn.100036e0
mov eax, esi
pop esi
ret

Function at 0x10003ce0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x100140c0]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.10004530
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x10]
sub ecx, 0
mov eax, 0xa
je 0x10003e29
sub ecx, 1
je 0x10003db5
sub ecx, 1
jne 0x10003e2e
mov ecx, dword [esp + 4]
cmp ecx, 4
ja 0x10003d88
mov ecx, dword [esp + 8]
cmp ecx, 0x33
jne 0x10003d68
lea eax, [ecx - 0x2c]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.100045aa
add esp, 0x98
ret
test ecx, ecx
jne 0x10003e2e
lea eax, [ecx + 8]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.100045aa
add esp, 0x98
ret
cmp ecx, 5
jne 0x10003e2e
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x10003e2e
lea eax, [ecx + 9]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.100045aa
add esp, 0x98
ret
cmp dword [esp + 4], 4
jne 0x10003e2e
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x10003de6
xor eax, eax
cmp byte [esp + 0x15], 0x43
sete al
add eax, 2
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.100045aa
add esp, 0x98
ret
cmp ecx, eax
jne 0x10003e0c
xor eax, eax
cmp byte [esp + 0x15], 0x41
sete al
add eax, 4
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.100045aa
add esp, 0x98
ret
cmp ecx, 0x5a
jne 0x10003e2e
lea eax, [ecx - 0x54]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.100045aa
add esp, 0x98
ret
mov eax, 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.100045aa
add esp, 0x98
ret

Function at 0x100057ef
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x1000582a

Function at 0x100058cc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
or byte [ecx + 0x458bec45], cl
or al, 0xc1
call 0xd085bee9
Function at 0x10005911
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push es
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x3c]
add esi, edi
mov ebx, dword [esi + 0x78]
call fcn.100057af
pop ecx
nop
out dx, al
cmp byte [esi + 0x53], dl
call fcn.100057ef
pop ecx
test eax, eax
pop ecx
je 0x10005942
push edi
push esi
push ebx
call fcn.1000582f
add esp, 0xc
call fcn.100057af
sahf
cwde
sbb dword [ebx + ecx*4 + 0x76], 0x78
test esi, esi
je 0x10005942
mov ebx, dword [esi + edi + 0x24]
add esi, edi
add ebx, edi
call fcn.100057af
dec ebx
jge 0x100058bc
invalid
into
mov eax, dword [esi + 0x20]
add eax, edi
mov edi, dword [esi + 0x1c]
add edi, dword [ebp + 8]
or byte [ecx + 0x458bec45], cl
or al, 0xc1
call 0xd085bee9
je 0x10005951
and dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
call fcn.100057af
jge 0x1000586c
clc
das
cmp dword [ebp - 0x10], 0
je 0x10005936
mov eax, dword [ebp - 0x14]
and dword [ebp - 0x10], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, dword [ebp - 4]
jne 0x10005922
mov eax, dword [ebp - 0xc]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, dword [ebp + 8]
push eax
call fcn.10005745
pop ecx
test eax, eax
pop ecx
je 0x10005949
mov eax, dword [esi + 0x18]
inc dword [ebp - 0x10]
add dword [ebp - 8], 2
add dword [ebp - 0xc], 4
dec eax
cmp dword [ebp - 0x10], eax
jbe 0x10005900
mov eax, dword [esi + 0x14]
inc dword [ebp - 4]
dec eax
cmp dword [ebp - 4], eax
jbe 0x100058df
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
jmp 0x10005986
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov eax, dword [esi + 0x10]
add eax, ebx
cmp dword [ebp + 0xc], eax
jne 0x10005971
call fcn.100057af
xchg byte [esp - 0x80], ah
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x10005980
mov eax, dword [esi + 0x14]
add dword [ebp - 0x10], 4
inc ebx
dec eax
cmp ebx, eax
jbe 0x10005956
jmp 0x10005942
mov eax, dword [edi + ebx*4]
shl eax, 6
add eax, dword [ebp + 8]
jmp 0x10005944
Function at 0x10005930
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push es
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x3c]
add esi, edi
mov ebx, dword [esi + 0x78]
call fcn.100057af
pop ecx
nop
out dx, al
cmp byte [esi + 0x53], dl
call fcn.100057ef
pop ecx
test eax, eax
pop ecx
je 0x10005942
push edi
push esi
push ebx
call fcn.1000582f
add esp, 0xc
call fcn.100057af
sahf
cwde
sbb dword [ebx + ecx*4 + 0x76], 0x78
test esi, esi
je 0x10005942
mov ebx, dword [esi + edi + 0x24]
add esi, edi
add ebx, edi
call fcn.100057af
dec ebx
jge 0x100058bc
invalid
into
mov eax, dword [esi + 0x20]
add eax, edi
mov edi, dword [esi + 0x1c]
add edi, dword [ebp + 8]
or byte [ecx + 0x458bec45], cl
or al, 0xc1
call 0xd085bee9
je 0x10005951
and dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
call fcn.100057af
jge 0x1000586c
clc
das
cmp dword [ebp - 0x10], 0
je 0x10005936
mov eax, dword [ebp - 0x14]
and dword [ebp - 0x10], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, dword [ebp - 4]
jne 0x10005922
mov eax, dword [ebp - 0xc]
push dword [ebp + 0xc]
mov eax, dword [eax]
add eax, dword [ebp + 8]
push eax
call fcn.10005745
pop ecx
test eax, eax
pop ecx
je 0x10005949
mov eax, dword [esi + 0x18]
inc dword [ebp - 0x10]
add dword [ebp - 8], 2
add dword [ebp - 0xc], 4
dec eax
cmp dword [ebp - 0x10], eax
jbe 0x10005900
mov eax, dword [esi + 0x14]
inc dword [ebp - 4]
dec eax
cmp dword [ebp - 4], eax
jbe 0x100058df
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
jmp 0x10005986
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov eax, dword [esi + 0x10]
add eax, ebx
cmp dword [ebp + 0xc], eax
jne 0x10005971
call fcn.100057af
xchg byte [esp - 0x80], ah
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x10005980
mov eax, dword [esi + 0x14]
add dword [ebp - 0x10], 4
inc ebx
dec eax
cmp ebx, eax
jbe 0x10005956
jmp 0x10005942
mov eax, dword [edi + ebx*4]
shl eax, 6
add eax, dword [ebp + 8]
jmp 0x10005944

Function at 0x10005b54
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
idiv dword [edi - 0x39c18]
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.10005774
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.100057bf
push eax
push esi
push dword [ebp + 8]
call fcn.10005774
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
invalid
pop ebp
Function at 0x10005c58
Capabilities:
Inspect section memory permissions

Disassembly:
sbb dword [ebx - 0x3a], 0x45
test byte [ecx - 0x3a], bh
inc ebp
test dword [edx - 0x3a], esi
inc ebp
xchg byte [ebx - 0x3a], ah
inc ebp
xchg dword [edx - 0x3a], edi
inc ebp
mov byte [ebx - 0x3a], dh
inc ebp
mov dword [esi - 0x3a], ebx
inc ebp
mov dh, byte [edi - 0x3a]
inc ebp
mov edi, dword [eax - 0x3a]
inc ebp
invalid

Function at 0x10005ecf
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10005e86
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10005ea4
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10005f02
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
jge 0x10005ee1
jge 0x10005ee1
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10005ee9
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10005ef2
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10005efc
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10005ede
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10005e68
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10005f4f
dec eax
je 0x10005f46
sub eax, 3
je 0x10005f3d
or edi, eax
inc ebp
cld
inc eax
add byte [eax], al
add bl, ch
das
mov dword [ebp - 4], 0x40
jmp 0x10005f6c
mov dword [ebp - 4], 4
jmp 0x10005f52
mov dword [ebp - 4], 0x20
jmp 0x10005f52
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10005f9e
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10005f1e
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.100057af
push ds
cmpsd dword [esi], dword es:[edi]
js 0x10005f33
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x10005faa
push 0x8000
push ebx
push esi
call dword [ebp - 8]
clc

Function at 0x10006377
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lcall 0xffff, 0xfae485c6
lodsb al, byte [esi]
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.100057bf
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
adc al, 0xe8
sal bl, 0xff
inc dword [ebx - 0x7a76f33c]
cld
invalid
invalid
invalid
in eax, dx
Function at 0x10006ebb
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.10005720
add esp, 0xc
mov eax, dword [ebp - 0x678]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 4]
mov dword [ebp - 0x748], eax
mov eax, dword [ebp - 0x3ac]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax + 4]
mov dword [ebp - 0x6f8], eax
and dword [ebp - 0x700], 0
jmp 0x10006eff
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
mov eax, dword [ebp - 0x700]
cmp eax, dword [ebp - 0x38c]
jae 0x10006f51
mov eax, dword [ebp - 0x748]
add eax, dword [ebp - 0x700]
movsx eax, byte [eax]
movsx ecx, byte [ebp - 8]
xor eax, ecx
mov ecx, dword [ebp - 0x748]
add ecx, dword [ebp - 0x700]
mov byte [ecx], al
mov eax, dword [ebp - 0x748]
add eax, dword [ebp - 0x700]
movsx eax, byte [eax]
not eax
mov ecx, dword [ebp - 0x748]
add ecx, dword [ebp - 0x700]
mov byte [ecx], al
jmp 0x10006ef2
and dword [ebp - 0x700], 0
jmp 0x10006f67
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
mov eax, dword [ebp - 0x700]
cmp eax, dword [ebp - 0x688]
jae 0x10006fb9
mov eax, dword [ebp - 0x6f8]
add eax, dword [ebp - 0x700]
movsx eax, byte [eax]
movsx ecx, byte [ebp - 8]
xor eax, ecx
mov ecx, dword [ebp - 0x6f8]
invalid
Function at 0x4012a4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x108
call fcn.00401f54
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x409248
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
push 0x108
call fcn.00401f54
add esp, 4
mov dword [ebp - 8], eax
mov edi, eax
mov esi, 0x409248
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov dword [ebp - 0xc], 0
jmp 0x40130e
push ecx
mov ecx, 1
mov ecx, 2
mov ecx, 4
mov ecx, 2
mov ecx, 5
mov ecx, 4
mov ecx, 2
mov ecx, 5
mov ecx, 5
pop ecx
push esi
mov esi, 1
mov esi, 2
mov esi, 4
mov esi, 2
mov esi, 5
mov esi, 4
mov esi, 2
mov esi, 5
mov esi, 5
pop esi
mov ebx, dword [ebp - 4]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
add ebx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov byte [ebx], 0
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
add ebx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov byte [ebx], 0
nop
nop
nop
nop
nop
mov eax, dword [ebp - 4]
add eax, 8
mov ecx, pe_nt_image_headers32
xor ebx, ebx
sub bl, cl
mov byte [ebx + eax], bl
loop 0x4013b2
push eax
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
mov edi, dword [edx + 4]
add edx, 8
mov esi, dword [ebp - 8]
add esi, 8
mov ecx, pe_nt_image_headers32
xor ebx, ebx
cmp ebx, edi
jb 0x4013da
xor ebx, ebx
mov ah, byte [ebx + edx]
mov byte [esi], ah
inc esi
inc ebx
loop 0x4013d4
pop edi
xor ebx, ebx
sub esi, 0x100
xor eax, eax
mov ecx, pe_nt_image_headers32
mov dl, byte [eax + esi]
add bl, dl
mov dl, byte [eax + edi]
add bl, dl
mov dl, byte [eax + edi]
mov dh, byte [ebx + edi]
mov byte [eax + edi], dh
mov byte [ebx + edi], dl
inc eax
loop 0x4013f3
mov esi, dword [ebp + 8]
mov esi, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0xc], ecx
add esi, 8
nop
nop
nop
nop
nop
push dword [ebp - 0xc]
call fcn.004014ce
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx]
test ebx, ebx
je 0x401440
push ebx
call fcn.00401f4e
add esp, 4
pop eax
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
nop
nop
nop
nop
nop
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
add edx, 8
xor eax, eax
xor ebx, ebx
push ecx
movzx ecx, al
inc cl
push edx
mov dh, byte [ecx + edi]
add bl, dh
mov dl, byte [ebx + edi]
mov byte [ecx + edi], dl
mov byte [ebx + edi], dh
add dl, dh
movzx edx, dl
mov dl, byte [edx + edi]
mov cl, byte [eax + esi]
xor cl, dl
pop edx
mov byte [eax + edx], cl
inc eax
pop ecx
loop 0x40145a
nop
nop
nop
nop
nop
mov ebx, dword [ebp - 4]
push ebx
call fcn.00401f4e
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
call fcn.00401f4e
add esp, 4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4025b2
Capabilities:
Terminate process

Disassembly:
push 8
push 0x407138
call fcn.004033dc
push 8
call fcn.004036d0
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x409e64], esi
jne 0x4025e6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x409e60], esi
mov al, byte [ebp + 0x10]
mov byte [0x409e5c], al
cmp dword [ebp + 0xc], edi
jne 0x402630
cmp dword [0x40a628], edi
je 0x402620
mov eax, dword [0x40a624]
sub eax, 4
mov dword [0x40a624], eax
cmp eax, dword [0x40a628]
jb 0x402620
mov eax, dword [eax]
cmp eax, edi
je 0x402601
call eax
jmp 0x402601
push 0x409020
mov eax, 0x40901c
call fcn.00402530
pop ecx
push 0x409028
mov eax, 0x409024
call fcn.00402530
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x402661
cmp dword [ebp + 0x10], edi
jne 0x40266f
mov dword [0x409e64], esi
push dword [ebp + 8]
call fcn.004024ee
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40266e
push 8
call fcn.0040361b
pop ecx
ret
call fcn.00403417
ret

Function at 0x4026b5
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x409780]
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 + 0x409508]
je 0x4026ea
inc eax
cmp eax, 0x13
jb 0x4026db
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x409508]
jne 0x402810
mov eax, dword [0x409e1c]
cmp eax, 1
je 0x4027e8
cmp eax, edx
jne 0x40271a
cmp dword [0x409504], 1
je 0x4027e8
cmp ecx, 0xfc
je 0x402810
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 0x402750
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004038f0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00403b20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x402784
mov eax, edi
push eax
call fcn.00403b20
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x407530
push edi
call fcn.004039f0
add esp, 0x10
push edi
call fcn.00403b20
push dword [esi + 0x40950c]
mov ebx, eax
call fcn.00403b20
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00403540
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004038f0
push edi
push ebx
call fcn.00403900
push 0x407510
push ebx
call fcn.00403900
push dword [esi + 0x40950c]
push ebx
call fcn.00403900
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004037f3
add esp, 0x2c
jmp 0x402810
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40950c]
push dword [esi]
call fcn.00403b20
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.00403bdc
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4037f3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40a0e0], ebx
push esi
push edi
jne 0x403873
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4038ae
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40763c
push edi
call esi
test eax, eax
mov dword [0x40a0e0], eax
je 0x4038ae
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40a0e4], eax
call esi
cmp dword [0x409e24], 2
mov dword [0x40a0e8], eax
jne 0x403873
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40a0f0], eax
je 0x403873
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40a0ec], eax
mov eax, dword [0x40a0ec]
test eax, eax
je 0x4038b8
call eax
test eax, eax
je 0x40389f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40a0f0]
test eax, eax
je 0x40389f
test byte [ebp - 8], 1
jne 0x4038b8
cmp dword [0x409e30], 4
jb 0x4038b2
or byte [ebp + 0x12], 0x20
jmp 0x4038d7
xor eax, eax
jmp 0x4038e7
or byte [ebp + 0x12], 4
jmp 0x4038d7
mov eax, dword [0x40a0e4]
test eax, eax
je 0x4038d7
call eax
mov ebx, eax
test ebx, ebx
je 0x4038d7
mov eax, dword [0x40a0e8]
test eax, eax
je 0x4038d7
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40a0e0]
pop edi
pop esi
pop ebx
leave
ret