joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416cdb
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4484a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.0041bfd0
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.00422b16
push eax
call fcn.0040233c
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x43ba34]
je 0x416e45
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x416e59
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x416e59
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
jne 0x416d74
mov eax, edi
jmp 0x416da3
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x416d91
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.00416ac0
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x28]
jmp 0x416d9a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
lea eax, [ecx + 1]
neg eax
sbb eax, eax
and eax, ecx
mov dword [esi + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040e1fc
test eax, eax
je 0x416dc8
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040d9c2
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x416dcc
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040e1fc
test eax, eax
je 0x416df3
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040d9c2
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x416df7
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0040e1fc
test eax, eax
je 0x416e1f
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040d9c2
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x416e21
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x416e33
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x416e45
mov eax, edi
mov dword [esi + 0x10], eax
mov eax, ecx
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041aa34
leave
ret 4
xor eax, eax
jmp 0x416e48

Function at 0x42b65b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042b30c

Function at 0x42b666
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042b496
Function at 0x401488
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4488d0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40151d
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014da
cmp dword [ebp + 0x10], ebx
jne 0x401511
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401488
test eax, eax
jne 0x4014ec
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014c1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405e0c
cmp eax, ebx
je 0x401524
push ebx
push dword [0x4488d0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40151d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x4488d0], ebx
jne 0x40151a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40151a
jmp 0x40151d
Function at 0x403198
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x42499c]
sub esi, dword [0x4289a8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x448840], eax
jle 0x4032f6
push dword [0x4289a4]
call fcn.00403181
push ebx
push ebx
push dword [0x4289a8]
push dword [0x40a010]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x424998], esi
mov dword [0x41490c], ebx
mov ebp, 0x41c998
mov eax, dword [0x4289a0]
sub eax, dword [0x4289a4]
mov edi, 0x4000
cmp eax, edi
jg 0x40320d
mov edi, eax
push edi
mov esi, 0x4249a0
push esi
call fcn.0040314f
test eax, eax
je 0x403308
add dword [0x4289a4], edi
mov dword [0x41c928], esi
mov dword [0x41c92c], edi
cmp dword [0x4487ec], ebx
je 0x403264
cmp dword [0x4488c0], ebx
jne 0x403264
mov eax, dword [0x424998]
sub eax, dword [0x42499c]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x4289a8]
mov dword [0x41490c], eax
call fcn.004030b9
pop ecx
mov ecx, 0x41c910
mov dword [0x41c930], ebp
mov dword [0x41c934], 0x8000
call fcn.0040663e
test eax, eax
jl 0x40330d
mov esi, dword [0x41c930]
sub esi, ebp
je 0x4032c2
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40a010]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403312
cmp esi, dword [esp + 0x10]
jne 0x403312
add dword [0x4289a8], esi
cmp dword [0x41c92c], ebx
jne 0x403233
jmp 0x4032ce
cmp dword [0x41c92c], ebx
jne 0x40330d
cmp edi, ebx
je 0x40330d
mov eax, dword [0x42499c]
mov ecx, eax
sub ecx, dword [0x4289a8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x4031f7
push ebx
push ebx
push eax
push dword [0x40a010]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.004030b9
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x403300
push 0xfffffffffffffffd
pop eax
jmp 0x403300
push 0xfffffffffffffffe
jmp 0x40330f
Function at 0x403316
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x403342
mov ecx, dword [0x448838]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a010]
mov dword [0x42499c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403198
cmp eax, edi
jl 0x40343b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40a010]
call ebx
test eax, eax
je 0x403437
cmp dword [ebp - 4], esi
jne 0x403437
push dword [ebp + 8]
add dword [0x42499c], esi
call fcn.00403198
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40343a
cmp dword [ebp + 0x10], edi
jne 0x403406
cmp dword [ebp + 8], edi
jle 0x403432
mov esi, 0x4249a0
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x4033b6
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40a010]
call ebx
test eax, eax
je 0x403437
cmp edi, dword [ebp - 4]
jne 0x403437
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403402
cmp dword [ebp + 0x14], edi
jne 0x403402
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42499c], eax
cmp dword [ebp + 8], 0
jg 0x4033a9
jmp 0x403432
push 0xfffffffffffffffe
jmp 0x403439
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403411
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a010]
call ebx
test eax, eax
je 0x403437
mov eax, dword [ebp - 4]
add dword [0x42499c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40343a
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x405850
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x43a9e8
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x43a9e8], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40588b
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4059c7
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4059e4
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4059e7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405a16
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405a5a
test edi, edi
jne 0x405a21
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405a54

Function at 0x405a5e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405acf
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x2000
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405abe
cmp dword [ebp + 0x14], 1
je 0x405ac0
cmp dword [ebp + 0x14], 2
je 0x405ac0
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405c33
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x405c58
mov eax, dword [0x40a058]
cmp eax, 0xffffffff
je 0x405c4f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a058], 0xffffffff
jmp 0x405ccd
cmp dword [0x43fb70], ebx
je 0x405ccd
cmp byte [0x444380], bl
je 0x405c97
cmp dword [0x40a058], 0xffffffff
jne 0x405ca0
push 4
push 0x40000000
push 0x444380
call fcn.004059e7
cmp eax, 0xffffffff
mov dword [0x40a058], eax
je 0x405ccd
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a058], 0xffffffff
je 0x405ccd
push esi
push 0x408cbc
mov esi, 0x43fb80
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push dword [0x40a058]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x405eca
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43aa30
push esi
call fcn.00405b77
push esi
call fcn.00405956
mov edi, eax
test edi, edi
jne 0x405eeb
xor eax, eax
jmp 0x405f43
push edi
call fcn.00405b99
test byte [0x448848], 0x80
je 0x405f04
mov al, byte [edi]
test al, al
je 0x405ee7
cmp al, 0x5c
je 0x405ee7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x405f24
push esi
call fcn.00405de5
test eax, eax
je 0x405f1e
test byte [eax], 0x10
je 0x405f48
push esi
call fcn.00405ea3
push esi
call ebx
cmp eax, edi
jg 0x405f0f
push esi
call fcn.00405e76
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x405f42
Function at 0x4061f3
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405e0c
test eax, eax
mov esi, dword [esp + 0x18]
je 0x406217
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x406350
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43ca30], 0x4c554e
mov edi, 0x400
mov ebp, 0x43ca30
je 0x40625b
push 1
push 0
push esi
call fcn.004059e7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406356
cmp eax, edi
jg 0x406356
push edi
mov esi, 0x43d370
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406356
cmp eax, edi
jg 0x406356
push esi
push ebp
push str._s_s_r_n
push 0x43ce30
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x4487ec]
push dword [eax + 0x128]
push esi
call fcn.00405fa2
push 4
push 0xc0000000
push esi
call fcn.004059e7
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x406350
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406349
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406349
cmp edi, dword [esp + 0x18]
jne 0x406349
push str._Rename__r_n
push esi
call fcn.00405f4c
test eax, eax
jne 0x40635d
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.00405b77
add edi, 0xa
mov eax, edi
push ebx
push 0x43ce30
add eax, esi
push eax
call fcn.004059a3
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x4488b0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x408d68
add eax, 0xa
push eax
call fcn.00405f4c
test eax, eax
je 0x406314
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x406384
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x406379
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x406316
Function at 0x4065b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x43f774], 0
jne 0x4065eb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4065c4
mov dword [ecx*4 + 0x43f770], eax
inc ecx
cmp ecx, 0x100
jl 0x4065bf
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406618
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x43f770]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4065f9
not eax
pop ebp
ret 0xc
Function at 0x100045d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001dd30
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x1002afc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [0x1002ad98]
lea eax, [ebp - 0x110]
push 0xff
push eax
push 0x1001f4c4
push dword [0x1002a3c8]
push dword [0x1002ad9c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x12c]
call fcn.100044f0
mov dword [ebp - 4], 0
call fcn.100112ae
cmp dword [ebp - 0x118], 0xf
lea esi, [ebp - 0x12c]
mov edi, eax
lea eax, [ebp - 0x114]
cmova esi, dword [ebp - 0x12c]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.1001155f
add esp, 0xc
cmp esi, dword [ebp - 0x114]
je 0x100046d7
cmp dword [edi], 0x22
je 0x100046e1
mov ecx, dword [ebp - 0x118]
mov dword [0x10030258], eax
cmp ecx, 0xf
jbe 0x100046ba
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100046b0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100046eb
push ecx
push edx
call fcn.1000c204
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000c6b5
mov esp, ebp
pop ebp
ret
push str.invalid_stoi_argument
call fcn.1000c080
push str.stoi_argument_out_of_range
call fcn.1000c0c0
call fcn.1000f5ff
int3

Function at 0x100071d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, 0x1103
movzx ecx, word [eax]
cmp cx, dx
jne 0x100071f8
cmp dword [eax + 0x18], 0x38324535
jne 0x10007290
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 0x1fe
cmp cx, ax
jne 0x10007290
mov ecx, dword [0x100307ac]
movups xmm0, xmmword [ecx + 2]
movups xmmword [0x100306e0], xmm0
movups xmm0, xmmword [ecx + 0x12]
movups xmmword [0x100306f0], xmm0
movups xmm0, xmmword [ecx + 0x22]
movups xmmword [0x10030700], xmm0
movzx eax, byte [ecx + 0x32]
mov byte [0x10030710], al
movups xmm0, xmmword [ecx + 0x34]
movups xmmword [0x10030748], xmm0
movups xmm0, xmmword [ecx + 0x44]
movups xmmword [0x10030758], xmm0
movups xmm0, xmmword [ecx + 0x54]
movups xmmword [0x10030768], xmm0
movzx eax, byte [ecx + 0x64]
mov byte [0x10030778], al
movups xmm0, xmmword [ecx + 0x66]
movups xmmword [0x100307b0], xmm0
movups xmm0, xmmword [ecx + 0x76]
movups xmmword [0x100307c0], xmm0
movups xmm0, xmmword [ecx + 0x86]
movups xmmword [0x100307d0], xmm0
movzx eax, byte [ecx + 0x96]
mov byte [0x100307e0], al
pop ebp
ret
Function at 0x1000b2c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001dd75
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
mov eax, dword [0x1002afc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [0x1002ad98]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x10
push 0x10037fc8
push 0x1001f4c4
push dword [0x1002ae08]
push dword [0x1002ad9c]
call esi
push 0x10037fc8
lea ecx, [ebp - 0x24]
call fcn.100044f0
push 0xa
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.1000b4b0
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov dword [0x10038134], eax
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0xf
jbe 0x1000b370
mov edx, dword [ebp - 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000b366
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000b419
push ecx
push edx
call fcn.1000c204
add esp, 8
push dword [0x1002ad98]
push 0x10
push 0x10037fc8
push 0x1001f4c4
push dword [0x1002ae0c]
push dword [0x1002ad9c]
call esi
push 0x10037fc8
lea ecx, [ebp - 0x3c]
call fcn.100044f0
push 0xa
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.1000b4b0
mov ecx, dword [ebp - 0x28]
add esp, 0xc
mov dword [0x10038138], eax
cmp ecx, 0xf
jbe 0x1000b3e9
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000b3df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000b41e
push ecx
push edx
call fcn.1000c204
add esp, 8
push dword [0x1002ad98]
push 0x10
push 0x10037fc8
push 0x1001f4c4
push dword [0x1002ae04]
push dword [0x1002ad9c]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.1000f5ff
call fcn.1000f5ff
int3

Function at 0x1000b920
Capabilities:
Execute anti-debugging instructions
Log keystrokes via polling

Disassembly:
push 0x10020654
jmp loc.100624fc

Function at 0x100117bd
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100117fc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100117fc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100117fc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100117fc
cmp dword [ecx + 0x74], 0xe
jbe 0x100117fc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10015bd6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10015c73
push ebx
push esi
call fcn.10015b9f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10015b33
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10015c20
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015c72
push edi
push eax
call fcn.10012f41
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10015c40
call fcn.10012f07
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10015c71
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10015b33
add esp, 0x20
test eax, eax
jne 0x10015c5f
push edi
call fcn.10012f07
jmp 0x10015c67
push ebx
call fcn.10012f07
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10015ee0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022708
push 0x10022700
push str.FlsAlloc
push 0x1f
call fcn.10015dfc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015f14
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001f148]
call esi
jmp 0x10015f1a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10015f5e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022718
push 0x10022710
push str.FlsGetValue
push 0x21
call fcn.10015dfc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015f95
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001f148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10015f9d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10022720
push 0x10022718
push str.FlsSetValue
push 0x22
call fcn.10015dfc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015fd7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001f148]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001d6e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001d70d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001d70d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10006aa0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x100377e8]
xor ecx, ecx
cmp eax, ecx
jne 0x10006b45
mov al, byte [0x100363b4]
mov dl, byte [0x100363b5]
xor al, 0xaa
mov byte [0x100377dc], al
mov al, byte [0x100363b6]
xor al, 0xaa
mov byte [0x100377de], al
mov al, byte [0x100363b8]
xor dl, 0xaa
xor al, 0xaa
mov byte [0x100377dd], dl
mov dl, byte [0x100363b7]
mov byte [0x100377e0], al
mov eax, dword [0x100363b9]
xor dl, 0xaa
mov byte [0x100377df], dl
mov dl, al
mov al, ah
xor al, 0xaa
mov byte [0x100377e2], al
mov al, byte [0x100363bb]
xor al, 0xaa
xor dl, 0xaa
mov byte [0x100377e3], al
mov byte [0x100377e1], dl
mov byte [0x100377e4], cl
xor eax, eax
mov edi, edi
mov dl, byte [eax + 0x100363c0]
xor dl, 0xaa
mov byte [eax + 0x100377c0], dl
inc eax
cmp eax, 0x19
jl 0x10006b20
mov byte [0x100377d8], cl
mov dword [0x100377e8], 1
push 0x100377dc
push 0x411
push esi
call sub.ODBC32.dll_SQLSetConnectOption
push 0x100377c0
push 0x412
push esi
call sub.ODBC32.dll_SQLSetConnectOption
ret