joyce8/EMBER2024-capa huggingface dataset:
Function at 0x642d223f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x642d2188
add ebx, 0
push ecx
call 0x642d219d
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x72d270be
sub ebx, dword [0x72d468fd]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x72d468ed
call fcn.642cdc67
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.642cd175
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x642d22fb
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x642d22fb
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x642d22b2
mov eax, 1
lock xchg dword [0x72d468f9], eax
push 0x3dd1fc71
call 0x642d223f
push esi
add esp, 8
cmp eax, 0
jne 0x642d2228
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x642d224e
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x642d2263
cmp ecx, edx
cmp eax, 0
je 0x642d2288
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x642d2272
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.642d22a1
dec eax
loope 0x642d22a4
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x72d468f9], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x642d22d8
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x642d22ed
jmp 0x642d22f8
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x642d21e6
Function at 0x642d9360
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x642d9636
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x72d33571
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x72d2a537
push 0xffffffffffffffff
call fcn.642d0560
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x642d93ca
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.642d93e2
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x642d962a
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x642d95fe
Function at 0x642e8e30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x642e8e52
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x642e8e52
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x642e8e52
ret
cmp word [ebx + 4], 0x14c
jne 0x642e8e52
test word [ebx + 0x16], 2
je 0x642e8e52
test word [ebx + 0x16], 0x100
je 0x642e8e52
cmp word [ebx + 0x18], 0x10b
jne 0x642e8e52
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x642e8e52
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x642e8ede
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x642e8e72
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.642cfdbd
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x642e8e52
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x642e8ede
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x642e8e52
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x642e8e52
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x642e8e52
ret
cmp word [ebx + 4], 0x14c
jne 0x642e8e52
test word [ebx + 0x16], 2
je 0x642e8e52
test word [ebx + 0x16], 0x100
je 0x642e8e52
cmp word [ebx + 0x18], 0x10b
jne 0x642e8e52
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x642e8e52
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x642e8ede
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x642e8e72
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.642cfdbd
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x642e8e52
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x642e8f95
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x642e8fee
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x642e8f95
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x642e8fa4
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x646eec47
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x642e8ff5
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.642cfe6b
cmp eax, dword [ebp + 0xc]
pop eax
je 0x642e9094
add edi, 4
add eax, 2
dec ecx
jne 0x642e8fda
call 0x642e9041
loope 0x642e9037
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x642e9091
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x642e90a2
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x642e9055
cmp eax, ecx
ja 0x642e9055
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x642e90df
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x642e90d5
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.642d034a
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x642e8fa4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x642e8fee
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x642e8f95
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x642e8fa4
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x646eec47
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x642e8ff5
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.642cfe6b
cmp eax, dword [ebp + 0xc]
pop eax
je 0x642e9094
add edi, 4
add eax, 2
dec ecx
jne 0x642e8fda
call 0x642e9041
loope 0x642e9037
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x642e9091
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x642e90a2
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x642e9055
cmp eax, ecx
ja 0x642e9055
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x642e90df
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x642e90d5
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.642d034a
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x100145c0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x28
push esi
push edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 8]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
mov eax, dword [0x100370e0]
mov ecx, dword [sym.imp.USER32.dll_DefWindowProcA]
mov dword [esp + 0x18], eax
mov eax, 0xc
push edx
mov dword [esp + 0x30], str.dummy
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x1001465c
mov eax, dword [0x100370e0]
push 0
push eax
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0
push str.dummy
push str.dummy
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x1001465c
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
add esp, 0x28
ret

Function at 0x100169e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edx, dword [eax]
mov esi, dword [eax + 4]
mov eax, dword [0x1002b248]
xor edi, edi
mov dword [ebp - 4], eax
mov ecx, 0x446843fd
nop
xor ecx, 0xda5f3a44
xchg ecx, ecx
je 0x10016a0f
xchg edi, edi
ja 0x10016a0f
xchg ecx, eax
xchg esi, esi
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov eax, ecx
dec ecx
test eax, eax
jbe 0x10016a85
mov eax, dword [ebp + 0xc]
inc ecx
mov dword [ebp + 0xc], ecx
mov ebx, dword [eax + 4]
mov dword [ebp - 0xc], ebx
mov ebx, dword [eax]
mov dword [ebp - 4], ebx
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov ecx, esi
add edi, eax
mov eax, dword [ebp - 4]
shl ecx, 4
add ecx, eax
mov eax, esi
shr eax, 5
add eax, ebx
mov ebx, dword [ebp - 0x14]
xor ecx, eax
lea eax, [edi + esi]
xor ecx, eax
mov eax, dword [ebp - 0x10]
add edx, ecx
mov ecx, edx
shl ecx, 4
add ecx, eax
mov eax, edx
shr eax, 5
add eax, ebx
xor ecx, eax
lea eax, [edi + edx]
xor ecx, eax
mov eax, dword [ebp + 0xc]
add esi, ecx
dec eax
mov dword [ebp + 0xc], eax
jne 0x10016a3d
mov eax, dword [ebp + 8]
pop edi
mov dword [eax + 4], esi
pop esi
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10016aa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax]
mov edx, dword [eax + 4]
mov edi, dword [0x1002b248]
nop
mov eax, 0x5af38e15
xchg eax, eax
mov ebx, 0x4343eba4
nop
add eax, ebx
je 0x10016ace
xchg ecx, ecx
ja 0x10016ace
nop
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, edi
shl eax, 5
dec edi
test ecx, ecx
jbe 0x10016b44
mov ecx, dword [ebp + 0xc]
inc edi
mov dword [ebp + 0xc], edi
mov ebx, dword [ecx + 8]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ecx + 0xc]
mov dword [ebp - 8], ebx
mov ebx, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov ecx, esi
shr ecx, 5
add ecx, edi
mov edi, esi
shl edi, 4
add edi, ebx
mov ebx, dword [ebp - 0x14]
xor ecx, edi
lea edi, [eax + esi]
xor ecx, edi
mov edi, dword [ebp - 0x10]
sub edx, ecx
mov ecx, edx
shr ecx, 5
add ecx, edi
mov edi, edx
shl edi, 4
add edi, ebx
xor ecx, edi
lea edi, [eax + edx]
xor ecx, edi
mov edi, dword [ebp - 4]
sub esi, ecx
mov ecx, dword [ebp + 0xc]
sub eax, edi
dec ecx
mov dword [ebp + 0xc], ecx
jne 0x10016afc
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
mov dword [eax + 4], edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001a9c0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x50
push ebx
push esi
mov esi, dword [esp + 0x5c]
push edi
push 0x7f00
push 0
mov eax, dword [esi]
mov dword [esp + 0x3c], 3
mov dword [esp + 0x40], 0x1001a930
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov ecx, dword [esi + 4]
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 6
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x1001aa40
pop edi
pop esi
pop ebx
add esp, 0x50
ret
mov eax, dword [esi]
lea ecx, [esp + 0x60]
mov dword [0x10038bbc], eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.1001a770
mov edx, dword [esi]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x1c]
add esp, 0x10
push 0
push edx
mov edx, dword [esp + 0x18]
push 0
push 0
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push 0x80000000
push 0
push ecx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x1001aaa3
xor ax, ax
pop edi
pop esi
pop ebx
add esp, 0x50
ret
mov dword [0x10037d8c], esi
call fcn.1001a2f0
test ax, ax
je 0x1001aab7
xor edi, edi
jmp 0x1001aac3
push esi
mov edi, 1
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [0x10037d8c]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0
push 0
lea eax, [esp + 0x24]
push edx
push eax
call esi
test eax, eax
je 0x1001ab4c
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esp + 0x1c], 0x12
je 0x1001ab33
lea ecx, [esp + 0x18]
push ecx
call edi
lea edx, [esp + 0x18]
push edx
call ebx
mov eax, dword [0x10037d8c]
push 1
push 0
push 0
lea ecx, [esp + 0x24]
push eax
push ecx
call esi
test eax, eax
jne 0x1001aafc
mov ax, 1
pop edi
pop esi
pop ebx
add esp, 0x50
ret
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [0x10037d8c]
push edx
push eax
push 0x12
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
mov ax, 1
pop ebx
add esp, 0x50
ret
Function at 0x1001ac10
Capabilities:
Check os version
Create thread
Enumerate gui resources
Hide graphical window
Parse pe header

Disassembly:
sub esp, 0x19c
push esi
push edi
call fcn.1001a2f0
test ax, ax
mov word [0x10037d90], 0
jne 0x1001ace3
lea eax, [esp + 0xa0]
push 1
push eax
call fcn.1001a690
add esp, 8
cmp ax, 1
jne 0x1001ac5d
lea ecx, [esp + 0xa0]
push ecx
call fcn.1001ae50
add esp, 4
mov word [0x10037d90], ax
cmp word [0x10037d90], 0
jne 0x1001ace3
lea edx, [esp + 0xa0]
push 2
push edx
call fcn.1001a690
add esp, 8
cmp ax, 1
jne 0x1001ac95
lea eax, [esp + 0xa0]
push eax
call fcn.1001ae50
add esp, 4
mov word [0x10037d90], ax
cmp word [0x10037d90], 0
jne 0x1001ace3
lea ecx, [esp + 0xa0]
push 0
push ecx
call fcn.1001a690
add esp, 8
cmp ax, 1
jne 0x1001accd
lea edx, [esp + 0xa0]
push edx
call fcn.1001ae50
add esp, 4
mov word [0x10037d90], ax
cmp word [0x10037d90], 0
jne 0x1001ace3
xor ax, ax
pop edi
pop esi
add esp, 0x19c
ret
mov eax, dword [esp + 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x1001ad15
cmp word [eax], 0x5a4d
jne 0x1001ad15
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001ad15
mov ax, word [ecx + 0x16]
shr eax, 0xd
and eax, 1
jmp 0x1001ad19
mov ax, 1
mov esi, dword [esp + 0x1a8]
mov word [0x10038bb8], ax
test ax, ax
mov dword [0x10038bb0], esi
mov dword [0x10038bb4], 0x10032514
je 0x1001ad5a
push 0x10038bb0
call fcn.1001a9c0
add esp, 4
test ax, ax
jne 0x1001ae35
pop edi
pop esi
add esp, 0x19c
ret
or eax, 0xffffffff
mov ecx, 0x20
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0xc], 0x94
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1001ae03
cmp dword [esp + 0x1c], 2
jne 0x1001ae03
cmp dword [esp + 0x10], 5
jb 0x1001ae03
push 0x10037d94
push 0x1001b110
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x10037d94]
test eax, eax
jne 0x1001ae03
push 0
push esi
push 0
push 0
push 1
push 1
push 0xffffffffffffff9c
push 0xffffffffffffff9c
push 0x80000000
push 0
push str.BUTTON
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [0x10037d94], eax
je 0x1001ae03
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x10037d98], eax
lea edx, [esp + 8]
push edx
push 0
push 0x10038bb0
push 0x1001ab60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1001ae2e
xor ax, ax
pop edi
pop esi
add esp, 0x19c
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ax, 1
pop esi
add esp, 0x19c
ret
Function at 0x1001ae50
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
sub esp, 0x1a4
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0xb0]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xb0]
push 3
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.1001c2b0
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add esp, 0xc
lea eax, [esp + 0x14]
mov byte [esp + 0x17], 0
push eax
call ebx
cmp eax, 5
jne 0x1001aedd
mov ecx, dword [esp + 0x1b8]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x1002ec64
push 0x10037c88
call fcn.1001c830
add esp, 0x10
push 0x10037c88
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov ax, cx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret
lea edx, [esp + 0xb0]
push 0x5c
push edx
call fcn.1001db60
mov edi, dword [esp + 0x1c0]
add esp, 8
mov byte [eax + 1], 0
lea eax, [esp + 0xb0]
push edi
push eax
push 0x1002ec64
push 0x10037c88
call fcn.1001c830
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x10
push 0x10037c88
call ebp
cmp eax, 0xffffffff
je 0x1001af36
mov ax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret
call fcn.10017080
push eax
call fcn.10016f60
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.10019300
add esp, 0xc
cmp ax, 1
jne 0x1001af88
lea edx, [esp + 0x14]
push edi
push edx
push 0x1002ec64
push 0x10037c88
call fcn.1001c830
add esp, 0x10
push 0x10037c88
call ebp
cmp eax, 0xffffffff
je 0x1001af88
mov ax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret
lea eax, [esp + 0x18]
push eax
push 0x95
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, byte [esp + 0x18]
mov byte [esp + 0x10], 0
test al, al
je 0x1001b02e
mov eax, dword [esp + 0x10]
and eax, 0xff
lea esi, [esp + eax + 0x18]
push esi
call ebx
cmp eax, 5
jne 0x1001afde
push edi
push esi
push 0x1002ec64
push 0x10037c88
call fcn.1001c830
add esp, 0x10
push 0x10037c88
call ebp
cmp eax, 0xffffffff
jne 0x1001b01f
cmp byte [esi], 0
je 0x1001aff9
inc byte [esp + 0x10]
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov al, byte [esp + ecx + 0x18]
test al, al
jne 0x1001afe3
inc byte [esp + 0x10]
mov eax, dword [esp + 0x10]
mov edx, eax
and edx, 0xff
mov cl, byte [esp + edx + 0x18]
test cl, cl
jne 0x1001afad
xor ax, ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret
mov ax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0x1a4
ret

Function at 0x1001c1b1
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
mov dl, byte [ecx]
xor eax, eax
xor edi, edi
mov byte [esi], dl
cmp byte [ecx], al
je 0x1001c1df
mov edx, esi
push ebx
sub edx, ecx
mov bl, byte [ecx + 1]
inc edi
inc ecx
dec bl
xor bl, byte [edx + ecx - 1]
mov byte [edx + ecx], bl
cmp byte [ecx], al
jne 0x1001c1cc
pop ebx
mov byte [edi + esi], al
mov eax, esi
pop edi
pop esi
ret
Function at 0x1001cc70
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.1001cd30
mov eax, dword [0x100382c8]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x1001cc94
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x100382c4], 1
mov byte [0x100382c0], bl
jne 0x1001ccee
mov ecx, dword [0x1003d7c0]
test ecx, ecx
je 0x1001ccdc
mov esi, dword [0x1003d7bc]
sub esi, 4
cmp esi, ecx
jb 0x1001ccdc
mov eax, dword [esi]
test eax, eax
je 0x1001ccd5
call eax
mov ecx, dword [0x1003d7c0]
sub esi, 4
cmp esi, ecx
jae 0x1001ccc7
push 0x1002e020
push 0x1002e018
call fcn.1001cd50
add esp, 8
push 0x1002e02c
push 0x1002e024
call fcn.1001cd50
add esp, 8
test ebx, ebx
je 0x1001cd0d
call fcn.1001cd40
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x100382c8], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1001e5f0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x1001e6b4
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x1003828c], eax
call fcn.1001f100
test eax, eax
jne 0x1001e614
ret 0xc
mov ecx, dword [0x1003828c]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
mov dword [0x10038298], edx
mov dword [0x10038294], eax
shl eax, 8
add eax, edx
shr ecx, 0x10
mov dword [0x10038290], eax
mov dword [0x1003828c], ecx
call fcn.10021ea0
test eax, eax
jne 0x1001e656
call fcn.1001f140
xor eax, eax
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1003d7b4], eax
call fcn.10023960
mov ecx, dword [0x1003d7b4]
mov dword [0x100382f0], eax
test ecx, ecx
je 0x1001e6a5
test eax, eax
je 0x1001e6a5
call fcn.10022fd0
call fcn.10020d40
call fcn.100236b0
call fcn.100235c0
call fcn.1001cbf0
mov eax, dword [0x100382ec]
inc eax
mov dword [0x100382ec], eax
mov eax, 1
ret 0xc
call fcn.10021f00
call fcn.1001f140
xor eax, eax
ret 0xc
test eax, eax
jne 0x1001e6f4
mov eax, dword [0x100382ec]
test eax, eax
jle 0x1001e6ef
mov ecx, eax
mov eax, dword [0x100382c4]
dec ecx
test eax, eax
mov dword [0x100382ec], ecx
jne 0x1001e6d8
call fcn.1001cc60
call fcn.100231e0
call fcn.10021f00
call fcn.1001f140
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc
cmp eax, 3
jne 0x1001e703
push 0
call fcn.10021fd0
add esp, 4
mov eax, 1
ret 0xc