joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401447
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [0x4082b0], eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push ebx
push eax
mov dword [0x408298], ebx
mov word [0x408294], bx
call dword [sym.imp.USER32.dll_PeekMessageA]
lea eax, [ebp - 0xc]
push eax
push 1
push 0x4013fe
push fcn.004013ec
push 0x401394
push 0x40136e
push fcn.0040130e
push fcn.004012fa
push fcn.004012e6
call fcn.004024f0
add esp, 0x24
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x4014b8
mov eax, 0x801e
jmp 0x4015ec
push edi
lea eax, [ebp - 0x12c]
push esi
push eax
call fcn.00401a52
lea eax, [ebp - 0x12c]
push eax
call fcn.004017ff
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, eax
lea eax, [ebp - 0x230]
push esi
push eax
call edi
mov byte [esi], bl
lea eax, [ebp - 0x230]
inc esi
push eax
push esi
call edi
push ebx
push 0x4018cf
push ebx
push 0x67
push dword [0x4097a0]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push ebx
mov dword [0x408290], eax
push ebx
push 0x401431
lea eax, [ebp - 0x12c]
push ebx
push eax
push esi
push dword [ebp + 8]
mov dword [0x4082a4], ebx
mov dword [0x4082a0], ebx
call fcn.00402600
add esp, 0x1c
lea eax, [ebp - 0x12c]
push ebx
push ebx
push 0x4015f1
push ebx
push eax
push esi
push dword [ebp + 8]
call fcn.00402600
add esp, 0x1c
cmp eax, 1
je 0x4015b9
mov eax, dword [ebp - 0xc]
cmp eax, 6
jg 0x401577
je 0x4015c1
cmp eax, ebx
je 0x40158e
jle 0x401583
cmp eax, 4
jle 0x4015c1
cmp eax, 5
jne 0x401583
mov word [0x408294], 0x801e
jmp 0x4015ca
sub eax, 8
je 0x4015ae
dec eax
je 0x4015c1
dec eax
dec eax
je 0x40158e
mov word [0x408294], 0x7fff
jmp 0x4015ca
cmp word [0x408294], 0x80ff
jne 0x4015ca
mov eax, dword [0x4082a8]
cmp eax, ebx
je 0x4015ca
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4015ca
mov word [0x408294], 0x14
jmp 0x4015ca
cmp dword [0x408298], ebx
jne 0x4015ca
mov word [0x408294], 0x8019
mov eax, dword [0x408290]
cmp eax, ebx
je 0x4015da
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [ebp + 8]
call fcn.00402590
movzx eax, word [0x408294]
pop ecx
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x40182d
Capabilities:
Create directory
Get file attributes

Disassembly:
push ecx
and dword [esp], 0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov esi, edi
mov al, byte [esi]
cmp al, 0x5c
je 0x401847
cmp al, 0x2f
jne 0x40184a
inc esi
jmp 0x40183d
mov ebp, dword [sym.imp.USER32.dll_CharNextA]
lea eax, [edi + 2]
cmp esi, eax
jne 0x401872
cmp byte [esi], 0
je 0x4018bf
push esi
call ebp
mov esi, eax
mov al, byte [esi]
cmp al, 0x5c
je 0x401871
cmp al, 0x2f
je 0x401871
test al, al
jne 0x40185c
jmp 0x4018bf
inc esi
mov al, byte [esi]
test al, al
je 0x4018c3
cmp al, 0x5c
je 0x401887
cmp al, 0x2f
je 0x401887
push esi
call ebp
mov esi, eax
jmp 0x401872
mov bl, byte [esi + 1]
and byte [esi + 1], 0
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x80000010
cmp eax, 0x10
je 0x4018b9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov dword [esp + 0x10], eax
je 0x4018bd
push 1
push edi
call fcn.004019a0
mov byte [esi], bl
jmp 0x401872
mov byte [esi], bl
xor eax, eax
jmp 0x4018c7
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x4019e8
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
mov eax, dword [0x4082a8]
push edi
test eax, eax
mov edi, eax
je 0x401a4e
push esi
cmp dword [esp + 0xc], 0
je 0x401a34
lea esi, [eax + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401a34
test al, 0x10
jne 0x401a27
cmp dword [edi + 4], 0
jne 0x401a34
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x401a34
cmp dword [edi + 4], 0
je 0x401a34
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [edi]
push edi
mov dword [0x4082a8], eax
call fcn.004012fa
mov eax, dword [0x4082a8]
pop ecx
test eax, eax
mov edi, eax
jne 0x4019f5
pop esi
pop edi
ret 4
Function at 0x401afa
Capabilities:
Check if file exists
Get file attributes
Set current directory

Disassembly:
sub esp, 0x108
and byte [0x4097c0], 0
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
push eax
xor ebx, ebx
call fcn.00402030
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x14]
push eax
call edi
mov ebp, InitCommonControls
and eax, ebp
cmp eax, 0x10
je 0x401b55
lea eax, [esp + 0x14]
push eax
call fcn.00401e9a
lea eax, [esp + 0x14]
push eax
call fcn.0040182d
mov ebx, eax
test ebx, ebx
jne 0x401b4e
and byte [esp + 0x14], al
push 0
call fcn.004019e8
lea eax, [esp + 0x14]
push eax
call fcn.00401e6d
mov esi, 0x4097c0
push 0
push esi
push 0x104
lea eax, [esp + 0x20]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0x401c4b
push esi
call edi
and eax, ebp
cmp eax, 0x10
jne 0x401c4b
push esi
call fcn.00401e9a
test ebx, ebx
je 0x401ba3
push 1
push esi
call fcn.004019a0
push dword [0x408320]
call fcn.00401447
test eax, eax
je 0x401bc4
push 0x30
push 0
push eax
call fcn.00401ec9
push eax
call fcn.00401ae3
jmp 0x401c3e
mov eax, dword [0x4082b8]
cmp byte [eax], 0
je 0x401c3e
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call ebx
mov eax, dword [0x4082b8]
cmp byte [eax], 0x2e
je 0x401c32
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call ebp
push dword [0x4082b8]
mov edx, eax
mov dword [esp + 0x14], edx
call ebp
mov ecx, dword [esp + 0x10]
add ecx, eax
cmp ecx, 0x100
jge 0x401c32
push dword [0x4082b8]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call ebp
push esi
call edi
cmp eax, 0xffffffff
jne 0x401c2c
push str..EXE
push esi
call ebp
push esi
call edi
test al, 0x10
jne 0x401c32
mov dword [0x4082b8], esi
call fcn.00401f3e
push 0x408060
call ebx
push dword [0x408650]
call fcn.004019e8
jmp 0x401c59
push 0x10
push 0
push 0x40803c
call fcn.00401ae3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x401f3e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
push edi
lea eax, [ebp - 0x190]
push dword [0x4082b8]
xor edi, edi
xor ebx, ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x44
lea eax, [ebp - 0x90]
pop esi
push esi
push eax
call fcn.00402009
push 1
mov dword [ebp - 0x90], esi
pop esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x90]
push eax
push edi
push edi
push 0x20
push edi
push edi
lea eax, [ebp - 0x190]
push edi
push eax
push edi
mov dword [ebp - 0x64], esi
mov word [ebp - 0x60], si
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401fb3
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x10]
jmp 0x401fe8
lea eax, [ebp - 0x4c]
push 0x3c
push eax
call fcn.00402009
mov eax, dword [0x4082b8]
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x48], 0x540
mov dword [ebp - 0x30], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x401fe8
mov ebx, dword [ebp - 0x14]
cmp ebx, edi
je 0x402004
cmp dword [0x408650], edi
je 0x401ffd
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402030
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
and byte [edx], 0
mov ecx, dword [0x4082bc]
mov al, byte [ecx]
test al, al
je 0x402158
cmp al, 0x25
jne 0x4020b4
lea esi, [ecx + 1]
lea edx, [ebp - 0x104]
mov al, byte [esi]
test al, al
je 0x40206f
cmp al, 0x25
je 0x40206f
mov byte [edx], al
inc edx
inc esi
jmp 0x40205f
mov al, byte [esi]
inc esi
test al, al
je 0x40207b
cmp byte [esi], 0
je 0x402085
mov al, byte [esi]
cmp al, 0x5c
je 0x402085
cmp al, 0x2f
jne 0x4020b4
and byte [edx], 0
xor ebx, ebx
mov edi, section..data
lea eax, [ebp - 0x104]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4020c3
add edi, 4
inc ebx
cmp edi, str.temp
jb 0x40208f
mov ecx, dword [0x4082bc]
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x402164
test ebx, ebx
je 0x402130
jle 0x40213e
cmp ebx, 2
jle 0x402114
cmp ebx, 3
je 0x4020f7
cmp ebx, 4
jne 0x40213e
push dword [ebp + 8]
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40213e
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x40213e
push dword [ebp + 8]
call fcn.00401a52
push dword [ebp + 8]
call fcn.004017ff
push dword [ebp + 8]
and byte [eax], 0
call fcn.00401e6d
jmp 0x40213e
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp ebx, 1
jne 0x40213e
mov eax, dword [ebp + 8]
and byte [eax + 3], 0
jmp 0x40213e
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [esi], 0
je 0x402164
push dword [ebp + 8]
call fcn.00401e9a
inc esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x402164
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404de4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x404e2b
cmp edx, 0x10
jl 0x404e17
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x404e04
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x404e2b
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x404e23
and edx, 3
cmp edx, 3
jne 0x404e3f
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x404e44
cmp edx, 2
jne 0x404e50
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x404e55
cmp edx, 1
jne 0x404e5b
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x4098c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x533420], eax
mov ecx, 1
sub ecx, 1
lea esi, [esi]
add ecx, 1
mov edx, dword [ecx*4 + 0x53341c]
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
lea eax, [eax + ecx]
mov dword [ecx*4 + 0x533420], eax
cmp ecx, 0x26f
jl 0x4098d0
mov dword [0x415900], 0x270
ret

Function at 0x409910
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, dword [0x532010]
cmp eax, dword [0x415420]
je 0x409928
mov dword [0x415900], 0x271
cmp dword [0x415900], 0x270
jl 0x409a47
cmp dword [0x415900], 0x271
jne 0x40995f
mov eax, dword [0x532010]
call fcn.004098c0
mov eax, dword [0x532010]
not eax
mov dword [0x532010], eax
mov dword [0x415420], eax
mov ebx, 0
sub ebx, 1
nop
add ebx, 1
mov eax, dword [ebx*4 + 0x533424]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x533420]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x533a54]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x415910]
xor edx, eax
mov dword [ebx*4 + 0x533420], edx
cmp ebx, 0xe2
jl 0x409968
mov ebx, 0xe3
sub ebx, 1
mov esi, esi
add ebx, 1
mov eax, dword [ebx*4 + 0x533424]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x533420]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x533094]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x415910]
xor edx, eax
mov dword [ebx*4 + 0x533420], edx
cmp ebx, 0x26e
jl 0x4099bc
mov eax, dword [0x533ddc]
and eax, 0x80000000
mov edx, dword [0x533420]
and edx, 0x7fffffff
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [0x533a50]
xor edx, eax
and ecx, 1
mov eax, dword [ecx*4 + 0x415910]
xor eax, edx
mov dword [0x533ddc], eax
mov dword [0x415900], 0
mov eax, dword [0x415900]
mov eax, dword [eax*4 + 0x533420]
add dword [0x415900], 1
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
pop ebx
ret
Function at 0x40b4d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x415180]
cmp ax, 0xcb
je 0x40b5cc
cmp ax, 0xcc
je 0x40b5cc
mov edx, dword [0x534030]
test edx, edx
je 0x40b502
mov eax, dword [0x533ed0]
call edx
mov ebx, eax
jmp 0x40b507
mov ebx, 0x533ed4
cmp word [0x533ec0], 0
jle 0x40b52a
mov eax, 0x533ea0
call fcn.0040b740
mov eax, ebx
call fcn.0040b0b0
mov eax, ebx
call fcn.0040b120
mov edi, dword [ebx]
jmp 0x40b54a
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x40b545
mov edx, edi
mov eax, ebx
call fcn.0040a580
jmp 0x40b548
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x40b530
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x533ec0], 0
jle 0x40b5cc
mov edx, 0x533de0
mov eax, ebx
call fcn.0040a6b0
mov edi, eax
test edi, edi
je 0x40b59f
mov eax, dword [0x533e74]
mov dword [edi + 0xc], eax
cmp dword [0x533e74], 0
je 0x40b594
mov eax, dword [0x533e74]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x533e74], eax
sub word [0x533ec0], 1
cmp word [0x533ec0], 0
sete bl
mov eax, 0x533ea0
call fcn.0040b750
test bl, bl
je 0x40b5cc
mov eax, 0x533ea0
call fcn.0040b730
pop edi
pop esi
pop ebx
ret
Function at 0x401220
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
rcl eax, 0xad
not edi
dec esi
not ebx
rcl edi, 0x5f
rcl edx, 0xb
mov edx, 0x12
bswap eax
imul edx
rol edx, 0x8d
mov ebx, 0x19
imul edi
not eax
rol edx, 0x15
rol edi, 0xe
dec ebx
add esi, 0x47
rcr edx, 0x6f
inc edi
not edx
sbb edx, 0x5a
rcr esi, 0x7c
and eax, 0x50
sub esi, 0xbb
rcl esi, 0xe
add edi, 0xde
not edi
not eax
and edi, 0x30
bswap eax
not eax
bswap ebx
sbb eax, 0x90
bswap esi
add edx, 0xf8
sbb ebx, 0x75
inc eax
and eax, 0x65
bswap edi
mov eax, 0x39
neg eax
imul esi
rol edx, 0x74
mov edi, 0xa7
not edx
rcr esi, 0xfa
inc edx
imul eax
and edi, 0x18
add esi, 0x2d
xor ecx, ecx
xor edi, edi
dec edx
inc esi
bswap edi
add edx, 0x53
inc esi
and edx, 0x5c
mov eax, 0xd7
or eax, 0x8b
and eax, 0xad
imul esi
bswap edi
neg ebx
ror esi, 0x39
imul esi
ror edi, 0xe3
sbb esi, 0xb
bswap edi
mov edi, 0xa
neg edi
and ebx, 0xc2
and eax, 0xa
neg eax
dec ebx
rcr esi, 0xb5
bswap edi
not eax
inc esi
sub ebx, 0xdb
rcl ebx, 0xae
inc eax
bswap edi
imul edi
inc edi
sub edi, 0x76
neg eax
add ebx, 0x2c
not eax
not eax
sbb eax, 0x17
rcl eax, 0xb6
neg esi
bswap eax
mov ebx, 0x9b
or esi, 0x78
rcl ebx, 0xfb
rol edx, 0x56
neg edi
inc ebx
neg eax
neg eax
mov ecx, dword [ebp + 0xc]
dec esi
neg ebx
dec edx
imul esi
imul ebx
sub eax, 0xf0
neg ebx
neg ebx
not ebx
mov edi, 0xea
sbb edx, 0x33
and esi, 0xa7
imul edi
not edx
sub ebx, 0x8e
sbb edi, 0xf5
dec edi
ror ebx, 0x53
neg edx
bswap eax
not eax
inc eax
inc edi
dec esi
rcr eax, 0x21
add esi, 0x56
bswap edx
sbb ebx, 0xab
bswap eax
rcl ebx, 0xa4
ror edx, 0x44
inc esi
imul edx
and edi, 0x25
inc ebx
dec eax
bswap eax
sub esi, 0xbe
ror eax, 0x2c
imul edi
rcr ebx, 0x42
sub edi, 0x3a
dec edx
mov edi, 0x57
or esi, 0
bswap ebx
rol ebx, 0xa6
sbb eax, 0xd0
mov esi, 0x43
rol eax, 0xb5
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, eax
mov esi, ebx
not byte [edi]
mov ebx, eax
mov esi, esi
xor esi, eax
xor eax, esi
mov ebx, esi
mov eax, esi
xor esi, ebx
mov eax, esi
mov ebx, eax
add byte [edi], 0x26
mov esi, ebx
mov ebx, esi
mov ebx, ebx
xor esi, esi
mov eax, esi
mov ebx, ebx
xor esi, esi
xor eax, eax
mov eax, ebx
sub byte [edi], 0x86
mov ebx, ebx
mov esi, eax
mov eax, ebx
xor ebx, esi
xor ebx, esi
mov esi, eax
mov eax, ebx
xor eax, eax
mov eax, ebx
imul byte [edi]
inc edi
loop 0x4013cf
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4062a8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x442864]
jne 0x4062b2
repz ret
jmp fcn.00408bc5
Function at 0x40aba3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406329
and dword [ebp - 4], 0
cmp dword [0x444158], 0
mov ebx, eax
jne 0x40ac54
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ad05
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40ad05
push eax
call fcn.004062b7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x444158], eax
call esi
push eax
call fcn.004062b7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44415c], eax
call esi
push eax
call fcn.004062b7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x444160], eax
call esi
push eax
call fcn.004062b7
pop ecx
mov dword [0x444168], eax
test eax, eax
je 0x40ac54
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004062b7
pop ecx
mov dword [0x444164], eax
mov eax, dword [0x444164]
cmp eax, ebx
je 0x40acac
cmp dword [0x444168], ebx
je 0x40acac
push eax
call fcn.00406332
push dword [0x444168]
mov esi, eax
call fcn.00406332
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40acac
test edi, edi
je 0x40acac
call esi
test eax, eax
je 0x40aca3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40aca3
test byte [ebp - 0xc], 1
jne 0x40acac
or dword [ebp + 0x10], 0x200000
jmp 0x40ace5
mov eax, dword [0x44415c]
cmp eax, ebx
je 0x40ace5
push eax
call fcn.00406332
pop ecx
test eax, eax
je 0x40ace5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ace5
mov eax, dword [0x444160]
cmp eax, ebx
je 0x40ace5
push eax
call fcn.00406332
pop ecx
test eax, eax
je 0x40ace5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x444158]
call fcn.00406332
pop ecx
test eax, eax
je 0x40ad05
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ad07
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000462b
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ecx + 0xc]
push ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
mov edx, dword [ecx + 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x20], 0x544b2fba
mov dword [ebp - 0x1c], 0xef0bc9df
mov dword [ebp - 0x18], 0x39d589ae
mov dword [ebp - 0x14], 0xe5ea8173
push esi
mov esi, dword [ecx + 8]
push edi
mov edi, dword [ecx]
and ebx, 3
je 0x100046b7
mov ecx, dword [ebp - 4]
sub eax, ebx
mov dword [ebp + 8], eax
mov eax, dword [ecx]
add ecx, 4
add dword [ebp - 8], eax
add eax, edi
imul eax, eax, 0x6f6e65f
mov edi, 0xf993291a
sub edi, eax
xor edx, edi
xor esi, edi
mov eax, edx
add edx, edx
shr eax, 0x1f
xor edx, dword [ebp + eax*4 - 0x18]
mov eax, esi
shr eax, 0x1f
add esi, esi
xor esi, dword [ebp + eax*4 - 0x20]
sub ebx, 1
jne 0x10004678
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
test eax, eax
je 0x100047ab
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 4], ebx
mov eax, dword [ebx - 4]
add eax, edi
mov edi, 0xf993291a
imul eax, eax, 0x6f6e65f
mov ecx, edi
sub ecx, eax
mov eax, dword [ebx]
add eax, ecx
xor esi, ecx
imul eax, eax, 0x6f6e65f
xor edx, ecx
mov ecx, edi
mov edi, dword [ebx + 4]
mov ebx, 0xf993291a
sub ecx, eax
mov eax, edx
shr eax, 0x1f
add edx, edx
xor edx, dword [ebp + eax*4 - 0x18]
mov eax, esi
shr eax, 0x1f
add esi, esi
xor edx, ecx
xor esi, dword [ebp + eax*4 - 0x20]
lea eax, [edi + ecx]
imul eax, eax, 0x6f6e65f
xor esi, ecx
sub ebx, eax
mov eax, edx
shr eax, 0x1f
add edx, edx
xor edx, dword [ebp + eax*4 - 0x18]
mov eax, esi
shr eax, 0x1f
add esi, esi
xor edx, ebx
xor esi, dword [ebp + eax*4 - 0x20]
mov eax, dword [ebp - 4]
xor esi, ebx
mov dword [ebp - 0x10], esi
mov esi, eax
mov ecx, dword [eax + 8]
mov eax, dword [esi - 4]
add eax, ecx
add eax, edi
mov edi, esi
mov esi, dword [ebp - 0x10]
add eax, dword [edi]
mov edi, 0xf993291a
add dword [ebp - 8], eax
lea eax, [ecx + ebx]
imul eax, eax, 0x6f6e65f
lea ecx, [edx + edx]
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 4], ebx
sub edi, eax
mov eax, edx
shr eax, 0x1f
xor ecx, dword [ebp + eax*4 - 0x18]
xor ecx, edi
mov eax, ecx
shr eax, 0x1f
lea edx, [ecx + ecx]
lea ecx, [esi + esi]
xor edx, dword [ebp + eax*4 - 0x18]
mov eax, esi
shr eax, 0x1f
xor ecx, dword [ebp + eax*4 - 0x20]
xor ecx, edi
mov eax, ecx
shr eax, 0x1f
lea esi, [ecx + ecx]
xor esi, dword [ebp + eax*4 - 0x20]
sub dword [ebp + 8], 4
jne 0x100046c8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov dword [ecx], edi
pop edi
mov dword [ecx + 8], esi
pop esi
mov dword [ecx + 0xc], eax
mov dword [ecx + 4], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1001df2e
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100230b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [esi], 0x10001d44
mov dword [esi + 0xc], 0x10001d04
and dword [ebp - 4], 0
lea edi, [esi + 0x30]
push edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 1
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
mov byte [ebp - 4], 2
cmp dword [esi + 0x10], 0
je 0x1001e003
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x59
lea ebx, [esi + 0x14]
push eax
mov ecx, ebx
call fcn.1001ecc0
push 4
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.1001ee70
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x5f
push eax
mov ecx, ebx
call fcn.1001ecc0
jmp 0x1001e003
push edi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
lea ecx, [esi + 0x14]
call fcn.1001e972
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001fff0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1002002e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10020026
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10020030
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10020016
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10020100
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 0x10020116
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10020131
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret