joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004dfe0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x10138e70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
mov dword [ebp - 0x668], ecx
call fcn.1006ff30
push esi
lea eax, [ebp - 0x414]
push 0x100a5134
push eax
call fcn.1002a1d0
add esp, 0x18
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1004e1aa
push ebx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.1006ff30
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0xc
mov ecx, 0x100a306c
lea eax, [ebp - 0x638]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1004e0a6
test dx, dx
je 0x1004e0a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1004e0a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x1004e080
xor eax, eax
jmp 0x1004e0ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x1004e173
mov eax, 0x100a3070
lea ecx, [ebp - 0x638]
mov edi, edi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x1004e0e6
test dx, dx
je 0x1004e0e2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x1004e0e6
add ecx, 4
add eax, 4
test dx, dx
jne 0x1004e0c0
xor eax, eax
jmp 0x1004e0eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x1004e173
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1006e6e1
push 0x100afc1c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1006e675
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1006e675
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 0x664], 0x10
lea eax, [ebp - 0x20c]
push eax
je 0x1004e171
mov ecx, dword [ebp - 0x668]
call fcn.1004dfe0
jmp 0x1004e173
call ebx
lea eax, [ebp - 0x664]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1004e072
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1006f41a
mov esp, ebp
pop ebp
ret 4
Function at 0x1004f260
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x10138e70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
mov edi, ecx
test esi, esi
je 0x1004f37a
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.1006ff30
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x100afc1c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1006e675
push dword [edi + 0x18]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1006e675
push str.index.dat
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1006e675
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.1006ff30
push dword [ebp + 8]
lea eax, [ebp - 0x414]
push str.his__d
push eax
call fcn.1002a1d0
add esp, 0x3c
lea eax, [ebp - 0x20c]
push eax
push 0x824
push esi
push 0x100af9cc
push str.value
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1004f378
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1004f350
sub esi, ecx
sar esi, 1
je 0x1004f378
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1006f41a
mov esp, ebp
pop ebp
ret 8
Function at 0x1004f750
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x10138e70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x7d0
call fcn.1006daa9
mov edi, eax
add esp, 4
test edi, edi
je 0x1004f97f
push 0x7d0
push 0
push edi
call fcn.1006ff30
add esp, 0xc
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x610]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionInternet_Settings5.0User_AgentPost_Platform
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1004f97d
push eax
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x614]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1004f971
push esi
push 0x200
push eax
mov word [ebp - 0x40c], ax
lea eax, [ebp - 0x40a]
push eax
call fcn.1006ff30
xor eax, eax
push 0x200
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.1006ff30
xor esi, esi
add esp, 0x18
cmp dword [ebp - 0x614], esi
jbe 0x1004f970
nop
push 0x1fe
lea eax, [ebp - 0x60c]
mov dword [ebp - 0x618], 0xff
push 0
push eax
call fcn.1006ff30
add esp, 0xc
lea eax, [ebp - 0x618]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x60c]
push eax
push esi
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1004f963
push 0x100af8fc
lea eax, [ebp - 0x40c]
push 0x101
push eax
call fcn.1006e6e1
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0x40c]
push 0x101
push eax
call fcn.1006e675
push 0x100a5244
lea eax, [ebp - 0x40c]
push 0x101
push eax
call fcn.1006e675
push 0x100af8fc
lea eax, [ebp - 0x208]
push 0x101
push eax
call fcn.1006e6e1
lea eax, [ebp - 0x60c]
push eax
lea eax, [ebp - 0x208]
push 0x101
push eax
call fcn.1006e675
push 0x100a4dcc
lea eax, [ebp - 0x208]
push 0x101
push eax
call fcn.1006e675
add esp, 0x48
lea eax, [ebp - 0x40c]
push eax
push ebx
call fcn.1006e7fb
add esp, 8
test eax, eax
jne 0x1004f963
lea eax, [ebp - 0x208]
push eax
push ebx
call fcn.1006e7fb
add esp, 8
test eax, eax
jne 0x1004f963
push 0x100a4dc4
push 0x3e8
push edi
call fcn.1006e675
lea eax, [ebp - 0x60c]
push eax
push 0x3e8
push edi
call fcn.1006e675
add esp, 0x18
inc esi
cmp esi, dword [ebp - 0x614]
jb 0x1004f840
pop esi
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1006f41a
mov esp, ebp
pop ebp
ret 4
Function at 0x1004fa60
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3ac
mov eax, dword [0x10138e70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x39c], ax
lea eax, [ebp - 0x39a]
push eax
call fcn.1006ff30
add esp, 0xc
lea eax, [ebp - 0x39c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x100afc1c
lea eax, [ebp - 0x39c]
push 0x104
push eax
call fcn.1006e675
push dword [esi + 0x18]
lea eax, [ebp - 0x39c]
push 0x104
push eax
call fcn.1006e675
push str.index.dat
lea eax, [ebp - 0x39c]
push 0x104
push eax
call fcn.1006e675
add esp, 0x24
lea eax, [ebp - 0x3ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0x194], ax
lea eax, [ebp - 0x192]
push eax
call fcn.1006ff30
movzx eax, word [ebp - 0x3a6]
push eax
movzx eax, word [ebp - 0x3aa]
push eax
movzx eax, word [ebp - 0x3ac]
push eax
lea eax, [ebp - 0x194]
push str._d_d_d
push eax
call fcn.1000fa30
push 0xbb8
call fcn.1006daa9
mov esi, eax
add esp, 0x24
test esi, esi
je 0x1004fc26
push 0xbb8
push 0
push esi
call fcn.1006ff30
add esp, 0xc
lea eax, [ebp - 0x39c]
push eax
push 0x5dc
push esi
push 0x100af9cc
push str.adidcol
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.1006ff30
push dword [ebp + 8]
lea eax, [ebp - 0xcc]
push 0x1009be08
push eax
call fcn.1000fa30
push 0x100af9cc
push esi
call fcn.1006eb63
add esp, 0x20
test eax, eax
jne 0x1004fbde
lea eax, [ebp - 0xcc]
push eax
push 0x5dc
push esi
call fcn.1006e6e1
add esp, 0xc
jmp 0x1004fc03
push 0x100a50dc
push 0x5dc
push esi
call fcn.1006e675
lea eax, [ebp - 0xcc]
push eax
push 0x5dc
push esi
call fcn.1006e675
add esp, 0x18
lea eax, [ebp - 0x39c]
push eax
push esi
push str.adidcol
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push esi
call fcn.1006da71
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1006f41a
mov esp, ebp
pop ebp
ret 4
Function at 0x1004fe10
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x10138e70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 0
push 0
push 0
push 0
push 0x100af9cc
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
test ebx, ebx
jne 0x1004fe50
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret 4
push edi
push 0
push SysReAllocString
push 0
push 0
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
jne 0x1004fe86
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret 4
push 0xa00000
call fcn.1006daa9
push 0xa00000
mov esi, eax
push 0
push esi
mov dword [ebp - 0x70], esi
call fcn.1006ff30
add esp, 0x10
mov dword [ebp - 0x6c], 0
lea eax, [ebp - 0x6c]
push eax
push 0x64
lea eax, [ebp - 0x68]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x1004fef1
push eax
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.1006f8e0
add esi, dword [ebp - 0x6c]
lea eax, [ebp - 0x6c]
add esp, 0xc
push eax
push 0x64
lea eax, [ebp - 0x68]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1004fef1
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x1004fec4
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x70]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1006f41a
mov esp, ebp
pop ebp
ret 4

Function at 0x100506f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0
push dword [ebp + 8]
push 0x100512e0
push 0
push 0
call fcn.1006f19c
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x10050717
pop esi
pop ebp
ret 4
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp + 8], 1
pop esi
sete al
pop ebp
ret 4
Function at 0x100509e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x10138e70]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x10050abf
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.1006ff30
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x100afc1c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1006e675
push dword [edi + 0x18]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1006e675
push str.index.dat
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1006e675
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.1006ff30
push dword [ebp + 8]
lea eax, [ebp - 0x414]
push str.his__d
push eax
call fcn.1002a1d0
add esp, 0x3c
lea eax, [ebp - 0x20c]
push eax
push esi
push str.value
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1006f41a
mov esp, ebp
pop ebp
ret 8

Function at 0x10050dd0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10138e70]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.1006ff30
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10050e2c
cmp dword [ebp - 0x11c], 6
jb 0x10050e2c
push 0
push 0
call dword [sym.imp.WINMM.dll_waveOutSetVolume]
call fcn.10050740
call fcn.10051d50
call fcn.10051c70
call fcn.10051c10
call fcn.10051bb0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret
Function at 0x10050e60
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x39c
mov eax, dword [0x10138e70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 0x206
push eax
mov word [ebp - 0x2d4], ax
mov esi, ecx
lea eax, [ebp - 0x2d2]
push eax
call fcn.1006ff30
add esp, 0xc
lea eax, [ebp - 0x2d4]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x100afc1c
lea eax, [ebp - 0x2d4]
push 0x104
push eax
call fcn.1006e675
push dword [esi + 0x18]
lea eax, [ebp - 0x2d4]
push 0x104
push eax
call fcn.1006e675
mov ecx, dword [esi + 0x1c]
add esp, 0x18
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x2d4]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
push str.index.dat
lea eax, [ebp - 0x2d4]
push 0x104
push eax
call fcn.1006e675
add esp, 0xc
lea eax, [ebp - 0x2d4]
push eax
push 0
push str.count
push 0x100a52e0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
xor eax, eax
push 0xc6
push eax
cmp edi, 0xa
jle 0x10050fb9
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.1006ff30
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x2d4]
add esp, 0xc
push eax
push 0
push str.count
push 0x100a52e0
call ebx
mov esi, 1
cmp edi, esi
jle 0x10050fa4
mov edi, edi
push esi
lea eax, [ebp - 0xcc]
push str.key_d
push eax
call fcn.1000fa30
add esp, 0xc
lea eax, [ebp - 0x2d4]
push eax
push 0x100af9cc
lea eax, [ebp - 0xcc]
push eax
push 0x100a52e0
call ebx
inc esi
cmp esi, edi
jl 0x10050f70
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret 8
mov word [ebp - 0x39c], ax
inc edi
lea eax, [ebp - 0x39a]
push eax
call fcn.1006ff30
push edi
lea eax, [ebp - 0x39c]
push str.key_d
push eax
call fcn.1000fa30
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0xcc], ax
lea eax, [ebp - 0xca]
push eax
call fcn.1006ff30
push edi
lea eax, [ebp - 0xcc]
push 0x1009be08
push eax
call fcn.1000fa30
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x2d4]
add esp, 0x30
push eax
lea eax, [ebp - 0xcc]
push eax
push str.count
push 0x100a52e0
call esi
test eax, eax
je 0x10050fa4
lea eax, [ebp - 0x2d4]
push eax
push ebx
lea eax, [ebp - 0x39c]
push eax
push 0x100a52e0
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006f41a
mov esp, ebp
pop ebp
ret 8
Function at 0x10051150
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10138e70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.1006ff30
push 0x2710
call fcn.1006daa9
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x100511ad
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret 8
push 0x2710
push 0
push ebx
call fcn.1006ff30
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1006e6e1
push 0x100afc1c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1006e675
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1006e675
add esp, 0x30
lea eax, [ebp - 0x20c]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10051221
xor esi, esi
jmp 0x1005127d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0x40
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esi, 0x40
je 0x10051271
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x210]
push 0
push ecx
cmp esi, 0x2710
jbe 0x1005126c
push 0x2710
push ebx
push edi
call eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
sub esi, 0x2710
jne 0x10051243
jmp 0x10051271
push esi
push ebx
push edi
call eax
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.1006da71
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1006f41a
mov esp, ebp
pop ebp
ret 8
Function at 0x1005d130
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0xf
mov dword [ebp - 4], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor esi, esi
cmp dword [0x1013e8f0], esi
jbe 0x1005d186
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x1013e8ec]
push dword [eax + esi*4]
call ebx
mov eax, dword [0x1013e8ec]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [0x1013e8f0]
jb 0x1005d164
pop ebx
push dword [0x1013e8ec]
call fcn.1006da71
add esp, 4
mov dword [0x1013e8ec], 0
mov dword [0x1013e8f0], 0
push dword [ebp - 4]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1005d230
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [0x10138e70]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
cmp esi, 0xffffffff
je 0x1005d2e8
test esi, esi
je 0x1005d2e8
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1005d323
push edi
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10001
push eax
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1005d311
mov edx, dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x218]
cmp ecx, ebx
jb 0x1005d2e4
mov eax, dword [ebp + 0x10]
add eax, ebx
cmp ecx, eax
jae 0x1005d2e4
push esi
call edx
cmp edi, 3
jge 0x1005d2f7
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2d0]
inc edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov edx, dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
jne 0x1005d2a1
pop ebx
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006f41a
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.1006f41a
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x3a571de9
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x71d827c1
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401810
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
mov dword [esp], esi
call sym._strlen
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401865
cmp byte [esi + ebx - 1], 0xa
je 0x401839
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov edx, 0x4060a4
lock xchg dword [edx], eax
mov dword [esp], 2
call dbg.__acrt_iob_func
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call sym._fwrite
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x401df0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xfc
mov edi, dword [esp + 0x114]
mov esi, dword [esp + 0x110]
mov dword [esp], edi
call dbg.__wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x401fc8
mov ebx, dword [0x4060a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ebx
je 0x401edd
test byte [0x40401c], 8
jne 0x401f70
lea ebx, [esp + 0x28]
mov ebp, ebx
test byte [0x40402c], 8
jne 0x401f38
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], ebp
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [esp + 0x118]
test edx, edx
je 0x401e81
cmp esi, 3
jbe 0x401ef0
mov dword [esp], 2
call dbg.__acrt_iob_func
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x401e91
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call sym._fwrite
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esi*4 + 0x405114]
add eax, ebp
mov ecx, dword [esp + 0x118]
add edi, 1
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
mov dword [esp + 0x14], ecx
add edx, 0xc8
mov dword [esp + 8], str._s:_s:_s
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.__snprintf
jmp 0x401e81
mov dword [esp], 0x40402c
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x401e54
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], ebp
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add ebp, eax
jmp 0x401e54
mov dword [esp], 0x40401c
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x401e41
call sym._GetTickCount_0
mov edx, 0x10624dd3
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea ebp, [ebx + eax]
jmp 0x401e47
mov eax, 0xffffffff
jmp 0x401edd