joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403496
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4034b3
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x4034c2
mov ebx, 0x4181d8
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4034d7
mov ecx, dword [0x425cb8]
add ecx, eax
push ecx
call fcn.00403688
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403672
test eax, eax
je 0x403629
test byte [ebp + 0x17], 0x80
je 0x403612
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40c148
mov dword [ebp - 0xc], eax
call fcn.00406ca9
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403668
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403527
mov esi, dword [ebp + 0x14]
mov edi, 0x4141d8
push esi
push edi
call fcn.00403672
test eax, eax
je 0x403629
sub dword [ebp + 0x14], esi
mov dword [0x40c160], edi
mov dword [0x40c164], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40c148
mov dword [0x40c168], ebx
mov dword [0x40c16c], eax
call fcn.00406cc9
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x40360a
mov esi, dword [0x40c168]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x425d14], 1
mov edi, eax
je 0x4035c9
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403596
cmp dword [ebp + 0x14], 0
jne 0x4035c9
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x50]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push 0
call fcn.0040563f
mov dword [ebp - 0xc], edi
test esi, esi
je 0x4035fe
cmp dword [ebp + 0x10], 0
jne 0x4035e6
push esi
push ebx
push dword [ebp + 0xc]
call fcn.004061e2
test eax, eax
je 0x40360e
add dword [ebp - 4], esi
jmp 0x4035f2
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40c168]
cmp dword [ebp - 0x10], 1
jne 0x40354a
jmp 0x403668
cmp dword [ebp + 0x14], 0
jg 0x40351a
jmp 0x403668
push 0xfffffffffffffffc
jmp 0x40362b
push 0xfffffffffffffffe
jmp 0x40362b
test edi, edi
je 0x40365d
cmp dword [ebp + 0x14], esi
jge 0x40361e
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403672
test eax, eax
jne 0x403665
push 0xfffffffffffffffd
pop eax
jmp 0x40366b
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403639
mov esi, dword [ebp + 0x14]
mov edi, 0x4141d8
push esi
push edi
call fcn.00403672
test eax, eax
je 0x403629
push esi
push edi
push dword [ebp + 0xc]
call fcn.004061e2
test eax, eax
je 0x40360e
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40362e
jmp 0x403668
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405b3a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x408384
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x408374
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405b8b
xor eax, eax
jmp 0x405bb2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405bb2
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x405b87
call esi
pop esi
leave
ret 4

Function at 0x405bec
Capabilities:
Create process on windows

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

Function at 0x405c2f
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

Function at 0x405ccd
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00406116
mov edi, eax
cmp edi, 0xffffffff
je 0x405d0e
test byte [esp + 0x10], 1
push esi
je 0x405cf0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405cf6
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405cff
xor eax, eax
inc eax
jmp 0x405d10
test byte [esp + 0x10], 4
jne 0x405d0e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x406028
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x422a20
push esi
call fcn.004065a2
push esi
call fcn.00405fd3
mov edi, eax
test edi, edi
jne 0x406049
xor eax, eax
jmp 0x40609b
push edi
call fcn.0040680c
test byte [0x425c5c], 0x80
je 0x406062
mov al, byte [edi]
test al, al
je 0x406045
cmp al, 0x5c
je 0x406045
sub edi, esi
jmp 0x40607a
call fcn.00406aef
test eax, eax
je 0x406074
test byte [eax], 0x10
je 0x406045
push esi
call fcn.00405f81
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x406066
call fcn.00405f3a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406135
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x40613b
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
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 0x40616a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40abbc]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4061af
test edi, edi
jne 0x406175
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4061a9
Function at 0x406211
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x4233a8], 0x4c554e
mov edi, 0x400
mov ebp, 0x4233a8
je 0x40625d
push 1
push 0
push esi
call fcn.0040613b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40637c
cmp eax, edi
jg 0x40637c
mov esi, 0x4237a8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40637c
cmp eax, edi
jg 0x40637c
push esi
push ebp
push str._s_s_r_n
push 0x422fa8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x425c54]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004065c4
push 4
push 0xc0000000
push esi
call fcn.0040613b
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40637c
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 0x406375
push edi
push esi
push ebp
call fcn.004061b3
test eax, eax
je 0x406375
push str._Rename__r_n
push esi
call fcn.004060a0
test eax, eax
jne 0x406313
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406348
add eax, 0xa
push 0x40abc0
push eax
call fcn.004060a0
mov ebp, eax
test ebp, ebp
je 0x406344
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406335
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40632f
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x40634a
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x422fa8
push eax
call fcn.004060f6
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.004061e2
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406381
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x4063a4
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406211
pop ecx
pop ecx
inc dword [0x425cf0]
ret 8

Function at 0x406489
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406428
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4064f8
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x4064f8
cmp dword [ebp + 0xc], 1
je 0x4064fb
cmp dword [ebp + 0xc], 2
je 0x4064fb
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x406b16
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406b3a
xor eax, eax
test eax, eax
je 0x406b4c
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406b4c
xor ecx, ecx
jmp 0x406b4f
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a2b4]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406c3b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x423bac], 0
push esi
jne 0x406c72
xor ecx, ecx
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 0x406c4c
mov dword [ecx*4 + 0x423ba8], eax
inc ecx
cmp ecx, 0x100
jl 0x406c47
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406ca3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x423ba8]
xor eax, esi
inc ecx
dec edx
jne 0x406c85
pop edi
not eax
pop esi
ret 0xc
Function at 0x419910
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
push ebx
mov ebx, dword [0x4462f0]
or eax, 0xffffffff
push esi
push edi
mov edi, edx
xor esi, esi
test edi, edi
je 0x4199e7
nop dword [eax]
movzx ecx, byte [esi + ebx]
xor eax, ecx
mov ecx, eax
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
inc esi
xor eax, ecx
cmp esi, edi
jb 0x419930
pop edi
pop esi
not eax
pop ebx
pop ecx
ret
Function at 0x41ab70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
cmp byte [0x4465fd], 0
push ebp
push esi
mov ebp, edx
mov dword [esp + 8], ecx
jne 0x41abcb
push 0xa
push 3
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x4462f0], eax
mov esi, dword [eax]
add eax, 4
mov dword [0x4462f0], eax
mov edx, dword [eax]
add eax, 4
mov dword [0x4462f0], eax
call fcn.00419910
cmp eax, esi
jne 0x41ad31
mov byte [0x4465fd], 1
push ebx
mov ebx, dword [esp + 0x14]
mov ecx, 0x43e274
push edi
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41abf8
test dl, dl
je 0x41abf4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41abf8
add eax, 2
add ecx, 2
test dl, dl
jne 0x41abd8
xor eax, eax
jmp 0x41abfd
sbb eax, eax
or eax, 1
test eax, eax
je 0x41ac70
cmp byte [0x4465fe], 1
je 0x41ac70
mov esi, dword [sym.imp.python35.dll_PyDict_New]
call esi
mov dword [0x446658], eax
call esi
mov dword [0x446aa8], eax
call esi
mov dword [0x446600], eax
call esi
mov dword [0x4465c4], eax
call esi
mov dword [0x446acc], eax
call esi
mov dword [0x44663c], eax
call esi
mov dword [0x446aac], eax
call esi
mov edi, dword [sym.imp.python35.dll_PyLong_FromLong]
mov esi, 0xfffffffb
mov dword [0x446ab0], eax
push esi
call edi
mov dword [esi*4 + 0x446b14], eax
add esp, 4
inc esi
cmp esi, 0x101
jl 0x41ac53
mov byte [0x4465fe], 1
mov esi, dword [0x4462f0]
mov eax, ebx
mov ecx, esi
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41aca0
test dl, dl
je 0x41ac9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41aca0
add eax, 2
add ecx, 2
test dl, dl
jne 0x41ac80
xor edx, edx
jmp 0x41aca5
sbb edx, edx
or edx, 1
mov ecx, esi
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41acb0
sub ecx, edi
add esi, ecx
mov eax, dword [esi + 1]
add esi, 5
test edx, edx
je 0x41ad15
add esi, eax
mov ecx, ebx
mov eax, esi
nop dword [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x41acf0
test dl, dl
je 0x41acec
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x41acf0
add ecx, 2
add eax, 2
test dl, dl
jne 0x41acd0
xor edx, edx
jmp 0x41acf5
sbb edx, edx
or edx, 1
mov ecx, esi
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41ad00
sub ecx, edi
add esi, ecx
mov eax, dword [esi + 1]
add esi, 5
test edx, edx
jne 0x41acc5
movzx eax, word [esi]
mov edx, ebp
mov ecx, dword [esp + 0x10]
push eax
lea eax, [esi + 2]
push eax
call fcn.00419f70
add esp, 8
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret
push str.Error__corrupted_constants_object
call fcn.0042a090
add esp, 4
call fcn.004207c0
int3

Function at 0x41deff
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41df3e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41df3e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41df3e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41df3e
cmp dword [ecx + 0x74], 0xe
jbe 0x41df3e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42bdcd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43a548
push 0x43a540
push str.FlsAlloc
push 0x1f
call fcn.0042bc8c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42be01
push dword [ebp + 8]
mov ecx, esi
call dword [0x43847c]
call esi
jmp 0x42be07
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42be4b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43a558
push 0x43a550
push str.FlsGetValue
push 0x21
call fcn.0042bc8c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42be82
push dword [ebp + 8]
mov ecx, esi
call dword [0x43847c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42be8a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43a560
push 0x43a558
push str.FlsSetValue
push 0x22
call fcn.0042bc8c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42bec4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43847c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42f440
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x444008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x42f48b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042f5db
test al, al
jne 0x42f485
sub edx, 2
cmp edx, edi
jne 0x42f46b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42f4ad
lea eax, [edi + 2]
cmp edx, eax
je 0x42f4ad
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042f38c
add esp, 0x10
jmp 0x42f5a7
push esi
lea ecx, [ebp - 0x255]
call fcn.0042f5db
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42f4f0
push dword [ebp - 0x25c]
jmp 0x42f49d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x42f52d
cmp word [ebp - 0x226], 0
je 0x42f54e
cmp word [ebp - 0x226], ax
jne 0x42f52d
cmp word [ebp - 0x224], 0
je 0x42f54e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0042f38c
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42f59a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42f507
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42f582
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42f5a7
push 0x42f0ed
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00434aa0
add esp, 0x10
jmp 0x42f577
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d5fd
leave
ret
Function at 0x430057
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 0x4300f4
push ebx
push esi
call fcn.00430020
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.0042ffb4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4300a1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4300f3
push edi
push eax
call fcn.0042d3e2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4300c1
call fcn.0042bb1f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4300f2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042ffb4
add esp, 0x20
test eax, eax
jne 0x4300e0
push edi
call fcn.0042bb1f
jmp 0x4300e8
push ebx
call fcn.0042bb1f
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 0x436b50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x436b7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x436b7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401450
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x407020]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
push edi
push 0x104
push 0
push esi
call sub.MSVCR80.dll_memset
push 0x104
lea edi, [esi + 0x104]
push 0
push edi
call sub.MSVCR80.dll_memset
mov edx, str.kernel
add esp, 0x18
mov ebp, 0x104
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x4014aa
mov byte [eax], cl
add eax, 1
sub ebp, 1
jne 0x401497
jmp 0x4014ae
test ebp, ebp
jne 0x4014b1
sub eax, 1
push 0x103
mov byte [eax], 0
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x23
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
lea edx, [esp + 0xc]
push edx
push str._sQQPetRegistrar_s.ini
mov eax, 0x104
call entry0
push 0x103
lea eax, [esp + 0x11d]
push 0
push eax
mov byte [esp + 0x124], 0
call sub.MSVCR80.dll_memset
lea ecx, [esp + 0x20]
push ecx
push str._sQQPetRegistrar
mov eax, 0x104
lea edi, [esp + 0x12c]
call entry0
add esp, 0x20
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop edi
pop ebp
jne 0x40154a
lea eax, [esp + 0x104]
push eax
call fcn.00401630
mov ecx, dword [esp + 0x208]
xor ecx, esp
mov eax, esi
call fcn.00403a3e
add esp, 0x20c
ret

Function at 0x401570
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x407020]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push edi
push 0x103
lea eax, [esp + 0x111]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x118], 0
call sub.MSVCR80.dll_memset
push 0x103
lea ecx, [esp + 0x19]
push 0
push ecx
mov byte [esp + 0x20], 0
call sub.MSVCR80.dll_memset
push 0
push 0x4052b8
mov eax, 0x104
lea edi, [esp + 0x28]
call entry0
add esp, 0x20
add esi, 0x104
push esi
push 0x104
lea edx, [esp + 0x114]
push edx
mov eax, edi
push eax
push str.Version
push str.Kernel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xa
lea ecx, [esp + 0x110]
push 0
push ecx
call dword [sym.imp.MSVCR80.dll_strtoul]
mov ecx, dword [esp + 0x21c]
add esp, 0xc
pop edi
pop esi
xor ecx, esp
call fcn.00403a3e
add esp, 0x20c
ret