joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56d880
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0xa
call dword [sym.imp.MSVCR90.dll__errno]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov dword [eax], 0
push edi
push ebx
push ebp
call dword [sym.imp.MSVCR90.dll__read]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x56d8d2
call dword [sym.imp.MSVCR90.dll__errno]
cmp dword [eax], 4
jne 0x56d8d2
sub dword [esp + 0x10], 1
jne 0x56d8a5
pop edi
or eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x571630
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
call dword [sym.imp.MSVCR90.dll__mkdir]
mov esi, eax
add esp, 4
test esi, esi
je 0x57165e
push edi
mov edi, dword [sym.imp.MSVCR90.dll__errno]
call edi
cmp dword [eax], 0xd
jne 0x57165b
call edi
mov dword [eax], 0x11
mov eax, esi
pop edi
pop esi
ret
Function at 0x571a30
Capabilities:
Delete directory

Disassembly:
sub esp, 0x148
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x144], eax
push ebp
push esi
mov esi, dword [esp + 0x154]
push edi
mov edi, dword [esp + 0x164]
xor ebp, ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebp
test edi, edi
je 0x571a6e
mov byte [edi], 0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
call fcn.00571810
add esp, 0xc
test eax, eax
jne 0x571b92
cmp dword [esp + 0x14], ebp
jle 0x571b5a
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x4c]
push eax
lea esi, [edx + ebp]
push esi
push 0
push ecx
call fcn.0056ae90
mov eax, esi
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x571ab4
sub eax, edx
lea edx, [esp + 0x1c]
lea ebp, [eax + ebp + 1]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.0056a9c0
add esp, 8
cmp eax, 0xffffffff
je 0x571baa
test dword [esp + 0x22], 0x8000
je 0x571b03
lea ecx, [esp + 0x4c]
push ecx
call sub.MSVCR90.dll__unlink
add esp, 4
cmp eax, 0xffffffff
jne 0x571b03
test edi, edi
je 0x571bf0
mov byte [edi], 1
mov eax, dword [esp + 0x160]
test al, al
je 0x571b4c
test dword [esp + 0x22], 0x4000
je 0x571b4c
test edi, edi
je 0x571b22
mov dl, byte [edi]
mov byte [esp + 0xf], dl
push edi
push eax
lea eax, [esp + 0x54]
push 1
push eax
call fcn.00571a30
add esp, 0x10
test eax, eax
jne 0x571b92
test edi, edi
je 0x571b4c
cmp byte [esp + 0xf], al
jne 0x571b45
cmp byte [edi], al
je 0x571b4a
mov eax, 1
mov byte [edi], al
cmp ebp, dword [esp + 0x14]
jl 0x571a93
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x571b6c
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
cmp byte [esp + 0x15c], 0
je 0x571b90
push esi
call dword [sym.imp.MSVCR90.dll__rmdir]
add esp, 4
cmp eax, 0xffffffff
jne 0x571b90
test edi, edi
je 0x571c36
mov byte [edi], 1
xor eax, eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00586584
add esp, 0x148
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x571bbc
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
lea ecx, [esp + 0x4c]
push ecx
push 0x6590
push 0x727
call fcn.00406f10
add esp, 0xc
pop edi
pop esi
mov eax, 0x727
pop ebp
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00586584
add esp, 0x148
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x571c02
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
lea edx, [esp + 0x4c]
push edx
push 0x6590
push 0x72a
call fcn.00406f10
add esp, 0xc
pop edi
pop esi
mov eax, 0x72a
pop ebp
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00586584
add esp, 0x148
ret
push esi
push 0x6590
push 0x71f
call fcn.00406f10
mov ecx, dword [esp + 0x15c]
add esp, 0xc
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 0x71f
call fcn.00586584
add esp, 0x148
ret

Function at 0x572390
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
ret
Function at 0x572dd0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
cmp dword [esp + 0x10], 0
push esi
mov esi, dword [esp + 0x10]
je 0x572efd
push ebx
push ebp
push edi
jmp 0x572df0
dec dword [esp + 0x20]
mov edi, 0x6d59c0
mov ebx, 8
mov edi, edi
dec ebx
mov ebp, dword [0x6d59ac]
mov dword [esp + 0x14], ebx
mov ebx, dword [edi]
xor ebx, esi
mov dword [esp + 0x10], ebx
and ebx, 0xffff
xor edx, dword [ebx + ebp]
xor eax, dword [ebx + ebp + 4]
add ebx, ebp
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x6d5a40]
shr ebx, 0x10
xor edx, dword [ebx + ebp]
xor eax, dword [ebx + ebp + 4]
mov ebx, dword [edi + 4]
mov ebp, dword [0x6d59b0]
xor ebx, ecx
mov dword [esp + 0x10], ebx
and ebx, 0xffff
xor edx, dword [ebx + ebp]
xor eax, dword [ebx + ebp + 4]
add ebx, ebp
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x6d5a44]
add edi, 4
shr ebx, 0x10
xor edx, dword [ebx + ebp]
xor eax, dword [ebx + ebp + 4]
mov ebx, dword [edi + 4]
mov ebp, dword [0x6d59ac]
xor ebx, edx
mov dword [esp + 0x10], ebx
add edi, 4
and ebx, 0xffff
xor esi, dword [ebx + ebp]
xor ecx, dword [ebx + ebp + 4]
add ebx, ebp
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x6d5a40]
shr ebx, 0x10
xor esi, dword [ebx + ebp]
xor ecx, dword [ebx + ebp + 4]
mov ebx, dword [edi + 4]
mov ebp, dword [0x6d59b0]
add edi, 4
xor ebx, eax
mov dword [esp + 0x10], ebx
and ebx, 0xffff
xor esi, dword [ebx + ebp]
xor ecx, dword [ebx + ebp + 4]
add ebx, ebp
mov ebx, dword [esp + 0x10]
mov ebp, dword [0x6d5a44]
shr ebx, 0x10
xor esi, dword [ebx + ebp]
xor ecx, dword [ebx + ebp + 4]
mov ebx, dword [esp + 0x14]
add edi, 4
test ebx, ebx
jne 0x572e00
mov edi, edx
mov edx, esi
mov esi, edi
mov edi, eax
mov eax, ecx
mov ecx, edi
cmp dword [esp + 0x20], ebx
jne 0x572df0
pop edi
pop ebp
pop ebx
push esi
call fcn.00572bd0
add esp, 4
pop esi
add esp, 8
ret
Function at 0x573360
Capabilities:
Encode data using xor

Disassembly:
push ecx
cmp dword [0x6d0260], 0
push ebp
push esi
push edi
mov esi, eax
jne 0x573374
call fcn.00572f10
mov al, byte [esi]
mov byte [0x65a094], al
mov cl, byte [esi + 1]
xor ebp, ebp
mov dword [esp + 0xc], esi
mov byte [0x65a095], cl
lea esi, [ebp + 2]
push ebx
mov edi, edi
mov edx, dword [esp + 0x10]
mov al, byte [edx]
cmp al, 0x61
jl 0x5733a2
movsx eax, al
sub eax, 0x3b
jmp 0x5733b1
cmp al, 0x41
movsx eax, al
jl 0x5733ae
sub eax, 0x35
jmp 0x5733b1
sub eax, 0x2e
movsx ebx, al
test ebx, ebx
jl 0x5733bd
cmp ebx, 0x3f
jle 0x5733bf
xor ebx, ebx
test bl, 1
je 0x5733ec
xor edx, edx
lea edi, [esi - 2]
mov ecx, 0xc
mov eax, edi
div ecx
mov ecx, 0xe
sub ecx, edx
mov edx, 1
shl edx, cl
cmp edi, 0xc
sbb ecx, ecx
and ecx, 0x10
shl edx, cl
or ebp, edx
test bl, 2
je 0x573419
xor edx, edx
lea edi, [esi - 1]
mov ecx, 0xc
mov eax, edi
div ecx
mov ecx, 0xe
sub ecx, edx
mov edx, 1
shl edx, cl
cmp edi, 0xc
sbb ecx, ecx
and ecx, 0x10
shl edx, cl
or ebp, edx
test bl, 4
je 0x573443
xor edx, edx
mov ecx, 0xc
mov eax, esi
div ecx
mov ecx, 0xe
sub ecx, edx
mov edx, 1
shl edx, cl
cmp esi, 0xc
sbb ecx, ecx
and ecx, 0x10
shl edx, cl
or ebp, edx
test bl, 8
je 0x573470
xor edx, edx
lea edi, [esi + 1]
mov ecx, 0xc
mov eax, edi
div ecx
mov ecx, 0xe
sub ecx, edx
mov edx, 1
shl edx, cl
cmp edi, 0xc
sbb ecx, ecx
and ecx, 0x10
shl edx, cl
or ebp, edx
test bl, 0x10
je 0x57349d
xor edx, edx
lea edi, [esi + 2]
mov ecx, 0xc
mov eax, edi
div ecx
mov ecx, 0xe
sub ecx, edx
mov edx, 1
shl edx, cl
cmp edi, 0xc
sbb ecx, ecx
and ecx, 0x10
shl edx, cl
or ebp, edx
test bl, 0x20
je 0x5734ca
xor edx, edx
lea edi, [esi + 3]
mov ecx, 0xc
mov eax, edi
div ecx
mov ecx, 0xe
sub ecx, edx
mov edx, 1
shl edx, cl
cmp edi, 0xc
sbb ecx, ecx
and ecx, 0x10
shl edx, cl
or ebp, edx
inc dword [esp + 0x10]
add esi, 6
cmp esi, 0xe
jb 0x573390
mov esi, dword [0x6d0264]
mov eax, dword [0x6d5a40]
xor esi, ebp
mov edi, 0x1000
pop ebx
lea ecx, [ecx]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
xor ecx, edx
and ecx, esi
xor edx, ecx
mov dword [eax], edx
xor dword [eax + 4], ecx
add eax, 4
dec edi
add eax, 4
test edi, edi
jne 0x5734f0
mov eax, dword [0x6d59ac]
mov edi, 0x1000
mov edx, dword [eax]
mov ecx, dword [eax + 4]
xor ecx, edx
and ecx, esi
xor edx, ecx
mov dword [eax], edx
xor dword [eax + 4], ecx
add eax, 4
dec edi
add eax, 4
test edi, edi
jne 0x573515
mov eax, dword [0x6d5a44]
mov edi, 0x1000
lea ebx, [ebx]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
xor ecx, edx
and ecx, esi
xor edx, ecx
mov dword [eax], edx
xor dword [eax + 4], ecx
add eax, 4
dec edi
add eax, 4
test edi, edi
jne 0x573540
mov eax, dword [0x6d59b0]
mov edi, 0x1000
mov edx, dword [eax]
mov ecx, dword [eax + 4]
xor ecx, edx
and ecx, esi
xor edx, ecx
mov dword [eax], edx
xor dword [eax + 4], ecx
add eax, 4
dec edi
add eax, 4
test edi, edi
jne 0x573565
pop edi
pop esi
mov dword [0x6d0264], ebp
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x574330
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp dword [0x6d0a38], 0
je 0x57439f
cmp dword [0x65a3f4], 0xfffffffb
jne 0x57436e
push str.PEEKTIMEGAP
call fcn.0056c440
add esp, 4
test eax, eax
jne 0x57435f
mov dword [0x65a3f4], 0x1e
jmp 0x57436e
push eax
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
mov dword [0x65a3f4], eax
cmp dword [esp + 4], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x57438c
call esi
sub eax, dword [0x6d0a3c]
cmp eax, dword [0x65a3f4]
jle 0x57439e
mov eax, dword [0x6d0a38]
test eax, eax
je 0x574397
call eax
call esi
mov dword [0x6d0a3c], eax
pop esi
xor eax, eax
ret
Function at 0x586584
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x65ada4]
jne 0x58658e
repz ret
jmp fcn.00586cec
Function at 0x4d5ea0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x93000]
push edi
jmp 0x4d5eba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4d5ec1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d5eb0
mov eax, 1
add ebx, ebx
jne 0x4d5ed3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4d5ee4
jne 0x4d5f03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d5f03
dec eax
add ebx, ebx
jne 0x4d5ef0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4d5ec8
add ebx, ebx
jne 0x4d5eff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4d5f55
xor ecx, ecx
sub eax, 3
jb 0x4d5f1b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4d5f8a
sar eax, 1
mov ebp, eax
jmp 0x4d5f26
add ebx, ebx
jne 0x4d5f26
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d5ef4
inc ecx
add ebx, ebx
jne 0x4d5f34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d5ef4
add ebx, ebx
jne 0x4d5f41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4d5f36
jne 0x4d5f52
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4d5f36
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4d5f74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4d5f66
jmp 0x4d5eb6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4d5f74
add edi, ecx
jmp 0x4d5eb6
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4d5f92
cmp byte [edi], 0x13
jne 0x4d5f92
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 al, bl
loop 0x4d5f97
lea edi, [esi + 0xd1000]
mov eax, dword [edi]
or eax, eax
je 0x4d600f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xfa294]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xfa3e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4d5fc4
mov ecx, edi
jns 0x4d5ff3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xfa3ec]
or eax, eax
je 0x4d6009
mov dword [ebx], eax
add ebx, 4
jmp 0x4d5fe1
call dword [esi + 0xfa3fc]
mov ebp, dword [esi + 0xfa3f0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4d6043
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x40563b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402fd6
and dword [ebp - 0x14], 0
cmp dword [0x40b7d8], 0
mov dword [ebp - 0x18], eax
jne 0x4056ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405796
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405796
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40b7d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40b7dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40b7e0], eax
call edi
push eax
call esi
mov dword [0x40b7e8], eax
test eax, eax
je 0x4056ee
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40b7e4], eax
mov eax, dword [0x40b7e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405747
cmp dword [0x40b7e8], ecx
je 0x405747
push eax
call esi
push dword [0x40b7e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405747
test ebx, ebx
je 0x405747
call edi
test eax, eax
je 0x40573e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40573e
test byte [ebp - 8], 1
jne 0x405747
or dword [ebp + 0x10], 0x200000
jmp 0x40577a
mov eax, dword [0x40b7dc]
cmp eax, dword [ebp - 0x18]
je 0x40577a
push eax
call esi
test eax, eax
je 0x40577a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40577a
mov eax, dword [0x40b7e0]
cmp eax, dword [ebp - 0x18]
je 0x40577a
push eax
call esi
test eax, eax
je 0x40577a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b7d8]
call esi
test eax, eax
je 0x405796
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405798
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040239a
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x52cb6399
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x3c361a65
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401810
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
push ebp
mov edx, dword [eax]
lea ebp, [ecx + 4]
push esi
mov dword [ecx], edx
lea esi, [eax + 4]
mov ebx, ebp
push edi
mov edi, dword [eax]
xor ecx, ecx
sub ebx, esi
mov eax, dword [esi]
add esi, 4
mov edx, eax
sub eax, ecx
xor edx, edi
add eax, edi
mov edi, ecx
mov dword [ebx + esi - 4], edx
imul edi, ecx
xor eax, edi
inc ecx
cmp ecx, 7
mov edi, eax
jl 0x40182e
mov ecx, dword [ebp]
xor eax, eax
pop edi
cmp ecx, 0x4e4e4f4b
pop esi
pop ebp
sete al
pop ebx
ret

Function at 0x401870
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push ebx
mov ebx, eax
not eax
shr ebx, 2
add edx, eax
xor eax, eax
push esi
mov esi, dword [esp + 0x10]
test ebx, ebx
jle 0x4018b4
push ebp
mov ebp, dword [esp + 0x10]
push edi
sub ebp, esi
mov edi, dword [esi]
add esi, 4
mov ecx, edi
add edi, eax
xor ecx, edx
add edi, edx
mov edx, eax
mov dword [esi + ebp - 4], ecx
imul edx, eax
xor edx, edi
inc eax
cmp eax, ebx
jl 0x401895
pop edi
pop ebp
pop esi
pop ebx
ret

Function at 0x4016f6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, dword [ebp + 8]
mov dword [0x4041c0], eax
mov dword [0x4041c4], eax
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x4041c4], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401725
mov eax, 0x30
mov edx, dword [0x4041c0]
mov dword [ebp - 0x48], edx
mov ecx, str.swithlend
mov dword [ebp - 0x34], ecx
mov edx, section..text
mov dword [ebp - 0x54], edx
lea ecx, [ebp - 0x5c]
mov dword [ecx], eax
push ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor esi, esi
push esi
push dword [0x4041c0]
push esi
push esi
push 0x12c
push 0x78
push 0x348
push 0x2a8
push 0x40000
lea eax, str.khife
push eax
mov eax, str.swithlend
push eax
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4041d0], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4041d0]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor esi, esi
lea edi, [ebp - 0x50]
jmp 0x4017b7
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
push esi
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x4017a9
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov esp, ebp
pop ebp
ret
Function at 0x100047f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10004814
xor eax, eax
jmp 0x10004894
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000482b
xor eax, eax
jmp 0x10004894
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x10004877
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x10004877
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x1000484e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x10004883
xor eax, eax
jmp 0x10004894
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x10004891
xor eax, eax
jmp 0x10004894
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x100226e9
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x1002273c
push esi
push dword [ebp + 8]
call fcn.100228d5
mov edi, eax
test edi, edi
je 0x10022737
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10022737
mov eax, dword [ebp - 8]
jmp 0x1002274e
mov eax, dword [ebp + 0x10]
jmp 0x1002274e
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc

Function at 0x10022754
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017dea0
mov eax, dword fs:[0]
push eax
mov eax, 0x1018
call fcn.10154280
mov eax, dword [0x101e6e34]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ecx + 0x58], 0
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x101c], edi
mov dword [ebp - 0x1024], eax
je 0x10022888
push 0
push edx
call fcn.100228d5
mov ebx, eax
test ebx, ebx
jne 0x100227bc
push esi
jmp 0x100228b0
call fcn.10018c9e
push eax
lea ecx, [ebp - 0x1014]
call fcn.10003820
xor ecx, ecx
lea eax, [ebp - 0x1018]
push eax
push ecx
lea eax, [ebp - 0x1020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x1024]
mov dword [ebp - 0x1020], ecx
push ebx
mov dword [ebp - 0x1018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x101c], eax
test eax, eax
jne 0x10022847
push dword [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
call fcn.10004530
lea ecx, [ebp - 0x1018]
push ecx
push eax
lea eax, [ebp - 0x1020]
push eax
push 0
push dword [ebp - 0x1024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x101c], eax
call fcn.100188cf
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x101c], 0
jne 0x10022875
mov esi, dword [ebp - 0x1014]
add esi, 0xfffffff0
push esi
call fcn.10004040
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.10004600
jmp 0x100228b7
push esi
mov ecx, edi
call fcn.100038b0
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
jmp 0x1002286e
test esi, esi
jne 0x10022891
mov esi, 0x10190a58
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, edi
call fcn.100038b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015362e
leave
ret 0x10
Function at 0x10023b33
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x1017dfa0
call fcn.10153e21
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 0x1c]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x10023c3d
cmp ebx, dword [esi + 0xc]
jge 0x10023c3d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x10023b8a
cmp ebx, dword [edi + 8]
jl 0x10023c2b
cmp dword [ebp + 0xc], 0
je 0x10023c2b
xor ebx, ebx
jmp 0x10023bc4
xor ebx, ebx
push 0x10
mov dword [ebp - 4], ebx
call fcn.10023591
mov edi, eax
test edi, edi
je 0x10023ba4
mov dword [edi], vtable.CThreadData.0
jmp 0x10023ba6
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x14]
push edi
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.10023a5f
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x14], edi
mov esi, dword [ebp - 0x14]
cmp dword [edi + 0xc], ebx
jne 0x10023bdf
push 4
push dword [esi + 0xc]
call fcn.10018a7d
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x10023bf7
push 2
push 4
push dword [esi + 0xc]
call fcn.10018a7d
pop ecx
pop ecx
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x10023c64
mov ecx, dword [edi + 8]
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push ebx
push eax
call fcn.1015e1d0
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [edi + 8], eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x10023c3d
cmp ebx, dword [edi + 8]
jge 0x10023c3d
mov eax, dword [ebp + 0xc]
mov dword [ecx + ebx*4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.10153d7f
ret 8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.1001767a
int3