joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403550
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x42c
mov eax, dword [0x442184]
push edi
mov dword [esp + 0x42c], eax
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0x43
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403591
mov ecx, dword [str.Setup.ini]
mov edx, dword [0x434bf8]
mov ax, word [0x434bfc]
mov dword [edi], ecx
mov cl, byte [0x434bfe]
mov dword [edi + 4], edx
lea edx, [esp + 8]
mov word [edi + 8], ax
push edx
mov byte [edi + 0xa], cl
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
mov byte [esp + 0x118], 0
mov ecx, 0x40
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x118]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x403635
mov byte [esp + 0x220], 0
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x221]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x118]
push ecx
stosw word es:[edi], ax
lea edx, [esp + 0x224]
push str._sHkInstall.dll
push edx
stosb byte es:[edi], al
call fcn.004170ff
add esp, 0xc
mov ecx, dword [esp + 0x42c]
call fcn.00417188
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x403650
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x442184]
push ebx
push esi
push edi
mov dword [esp + 0x124], eax
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x103
lea eax, [esp + 0x1c]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
push 3
push ebx
push 7
push SysReAllocString
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4036fe
cmp esi, ebx
je 0x4036fe
push ebx
push esi
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov edi, eax
push ebx
lea edx, [edi - 4]
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call ebx
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp eax, edi
jbe 0x403713
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x124]
call fcn.00417188
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push eax
push esi
call ebx
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x10]
call fcn.00417188
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403760
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3a0
mov eax, dword [0x442184]
mov dword [esp + 0x39c], eax
xor eax, eax
push ebx
push edi
xor ebx, ebx
mov byte [esp + 0x298], bl
mov ecx, 0x40
lea edi, [esp + 0x299]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x18], bl
mov ecx, 0x1f
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x98], bl
mov ecx, 0x1f
lea edi, [esp + 0x99]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x198], bl
mov ecx, 0x1f
lea edi, [esp + 0x199]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x218], bl
mov ecx, 0x1f
lea edi, [esp + 0x219]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x118], bl
mov ecx, 0x1f
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x207
lea eax, [esp + 0x29c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x118]
push ecx
lea edx, [esp + 0x21c]
push edx
lea eax, [esp + 0x1a0]
push eax
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x2a8]
push edx
call fcn.00417fa5
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.004170ff
lea edi, [esp + 0x34]
add esp, 0x1c
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x403870
mov edx, dword [str.Temp]
mov ax, word [0x434c50]
mov dword [edi], edx
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
mov word [edi + 4], ax
mov dword [esp + 0x18], 0x104
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov ecx, dword [esp + 0x3a4]
lea eax, [esp + 0x18]
call fcn.00417188
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x431cfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov eax, dword [0x442184]
push esi
push edi
mov dword [esp + 0x12c], eax
xor eax, eax
mov byte [esp + 0x20], 0
mov ecx, 0x41
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov eax, dword [ebp + 8]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403980
lea edi, [esp + 0x20]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403990
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
call fcn.0040efd4
push 0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x144], 0
call fcn.0040f067
test eax, eax
jne 0x4039dd
mov dword [esp + 0x13c], 0xffffffff
jmp 0x403a23
push 0
push 0
push 3
push 0
push 6
push SysReAllocString
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
or esi, 0xffffffff
cmp eax, esi
jne 0x403a15
lea ecx, [esp + 8]
mov dword [esp + 0x13c], esi
call fcn.0040eff8
mov eax, 1
jmp 0x403a2e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x13c], esi
lea ecx, [esp + 8]
call fcn.0040eff8
xor eax, eax
mov ecx, dword [esp + 0x134]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x12c]
call fcn.00417188
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x403a50
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x2c
mov eax, dword [0x442184]
push esi
mov esi, ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x140]
test eax, eax
jne 0x403ac8
push 1
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.Global_HkApp.exe_SetupMap
push 8
push 0
push 0x8000004
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x24]
push 0
mov dword [esp + 0x1c], 0xc
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 0x140], eax
je 0x403b4b
push str.Global_HkApp.exe_SetupMap
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
test eax, eax
je 0x403b4b
mov ecx, dword [esi + 0x140]
push 8
push 0
push 0
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x403b19
mov edx, dword [esi + 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x140], 0
pop esi
mov ecx, dword [esp + 0x28]
call fcn.00417188
add esp, 0x2c
ret
push eax
mov dword [eax], 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
push 0xa
lea ecx, [esp + 0x28]
mov dword [esp + 0x29], eax
push ecx
mov word [esp + 0x31], ax
push 1
mov byte [esp + 0x30], 0
mov byte [esp + 0x37], al
call fcn.0041a339
add esp, 0xc
mov ecx, dword [esp + 0x2c]
pop esi
call fcn.00417188
add esp, 0x2c
ret
Function at 0x403f30
Capabilities:
Copy file

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x13c]
push edi
xor edi, edi
test eax, eax
jle 0x403f6b
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
lea esi, [ebx + 0xec]
mov edi, edi
mov eax, dword [esi - 0x50]
mov ecx, dword [esi]
push 0
push eax
push ecx
call ebp
mov eax, dword [ebx + 0x13c]
inc edi
add esi, 4
cmp edi, eax
jl 0x403f50
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x404170
Capabilities:
Encode data using xor
Get file size

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404250
push ebp
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov ebp, eax
push ebp
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
jne 0x4041c3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4041e2
push 0
push 0
push 0
push 2
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x404205
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4041fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
ret 4
test ebp, ebp
mov ecx, eax
jbe 0x404217
jmp 0x404210
xor byte [ecx], 0xbc
inc ecx
dec ebp
jne 0x404210
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404244
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
ret 4
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40426a
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
pop esi
xor eax, eax
pop ebx
ret 4
Function at 0x404280
Capabilities:
Create service
Delete service
Get common file path
Persist via windows service
Print debug messages
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x33c
mov eax, dword [0x442184]
push ebx
push esi
push edi
mov dword [esp + 0x344], eax
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x30], 0
mov ecx, 0xc2
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
stosb byte es:[edi], al
lea eax, [esp + 0x30]
push eax
push esi
push esi
push 0x25
push esi
mov dword [esp + 0x28], 0x10
mov dword [esp + 0x2c], 4
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea edi, [esp + 0x30]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4042f1
mov ecx, dword [str.GDesServer.exe]
mov edx, dword [0x434c1c]
mov eax, dword [0x434c20]
mov dword [edi], ecx
mov ecx, dword [0x434c24]
push 0xf003f
mov dword [edi + 4], edx
push 0
mov dword [edi + 8], eax
push 0
mov dword [edi + 0xc], ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
mov dword [esp + 0xc], edi
je 0x40443e
mov eax, dword [ebp + 8]
sub eax, 0
je 0x4043f8
dec eax
jne 0x40443e
push 0xf003f
push str.GDesServer
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x40443e
lea edx, [esp + 0x14]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4043e0
lea ecx, [esp + 0x10]
call fcn.00401760
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [esp + 0x14]
push eax
push esi
call ebx
test eax, eax
je 0x4043ba
cmp dword [esp + 0x18], 3
jne 0x4043ba
push 0x3e8
call edi
lea ecx, [esp + 0x14]
push ecx
push esi
call ebx
test eax, eax
jne 0x4043a0
cmp dword [esp + 0x18], 1
jne 0x4043c8
push str.SERVICE_STOPPED___ok
jmp 0x4043cd
push str.SERVICE_STOPPED___error
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x10]
call fcn.004015e0
mov edi, dword [esp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x40443e
push str.DeleteService___ok
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40443e
mov ecx, ebx
call fcn.004038d0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x44]
push edx
push 1
push 2
push 0x110
push 0xf01ff
push str.GDesServer
push str.GDesServer
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
je 0x40443e
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x404451
push esi
call ebx
test edi, edi
je 0x404458
push edi
call ebx
mov ecx, dword [esp + 0x344]
call fcn.00417188
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404ec0
Capabilities:
Enumerate processes
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x431dcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
mov eax, dword [0x442184]
push ebx
push esi
push edi
mov dword [esp + 0x13c], eax
xor eax, eax
push eax
mov dword [esp + 0x14], 0
mov ecx, 0x49
lea edi, [esp + 0x18]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x404f26
push str.EXITAPP___error_with_hProcessSnap__INVALID_HANDLE_VALUE
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x405004
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
je 0x404ff1
mov esi, dword [ebp + 8]
lea ebx, [ebx]
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.0041b63a
add esp, 8
test eax, eax
je 0x404f73
lea edx, [esp + 0x10]
push edx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x404f50
jmp 0x404ff1
push str.find____ok
call edi
mov eax, dword [esp + 0x18]
push eax
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x404ff1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x404fe3
lea ecx, [esp + 0xc]
call fcn.00401760
mov dword [esp + 0x14c], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.endexe
lea ecx, [esp + 0x14]
push str._s_____ld
push ecx
call fcn.00401ad0
mov edx, dword [esp + 0x1c]
add esp, 0x10
push edx
call edi
lea ecx, [esp + 0xc]
call fcn.004015e0
jmp 0x404fea
push str.endexe__true
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.EXITAPP___end
call edi
mov eax, 1
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x13c]
call fcn.00417188
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405290
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x431eb3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
push fcn.004015e0
push fcn.00401760
push 5
push 4
lea eax, [esp + 0x18]
push eax
mov edi, ecx
call fcn.00418335
push 0xa
xor esi, esi
push str.HkApp.exe
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], esi
call fcn.004017d0
push 0xa
push str.HkApi.dll
lea ecx, [esp + 0x14]
call fcn.004017d0
push 0xe
push str.HkInstall.dll
lea ecx, [esp + 0x18]
call fcn.004017d0
push 0xb
push str.dogdll.dll
lea ecx, [esp + 0x1c]
call fcn.004017d0
push 0xd
push str.HookProc.dll
lea ecx, [esp + 0x20]
call fcn.004017d0
lea ebx, [ebx]
mov eax, dword [esp + esi*4 + 8]
push eax
mov ecx, edi
call fcn.00403920
test eax, eax
jne 0x405364
inc esi
cmp esi, 5
jl 0x405320
push fcn.004015e0
push 5
push 4
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x34], 0xffffffff
call fcn.004182d5
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push str.Lock_file
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push fcn.004015e0
push 5
push 4
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x34], 0xffffffff
call fcn.004182d5
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x405940
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
mov eax, dword [0x442184]
push ebx
push esi
push edi
mov dword [esp + 0x114], eax
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x3f
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, byte [esp + 0x10]
test al, al
lea esi, [esp + 0x10]
je 0x4059c2
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push esi
call edi
cmp eax, 3
jne 0x4059a4
push esi
mov ecx, ebx
call fcn.00405490
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4059b0
sub eax, edx
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x405994
mov ecx, dword [esp + 0x114]
call fcn.00417188
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4097a0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor cl, cl
xor eax, eax
test edx, edx
jbe 0x4097ba
push esi
mov esi, dword [esp + 8]
xor cl, byte [eax + esi]
inc eax
cmp eax, edx
jb 0x4097b1
pop esi
mov dl, byte [esp + 0xc]
xor eax, eax
cmp cl, dl
sete al
ret 0xc
Function at 0x409e30
Capabilities:
Access peb ldr_data
Get ntdll base address
Identify system language via api
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x43268e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
mov eax, dword [0x442184]
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0x130], eax
push edi
mov dword [esp + 0x14], esi
mov ebx, dword [esp + 0x14c]
add ebx, 0xfffffff0
push ebx
mov dword [esp + 0x144], esi
call fcn.004016c0
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x140], 1
call dword [sym.imp.KERNEL32.dll_GetACP]
lea ecx, [esp + 0x18]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
call fcn.00425d0d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x140], 2
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
movzx eax, ax
push eax
movzx ecx, bp
push ecx
mov ecx, dword [esp + 0x34]
movzx edx, di
push edx
movzx eax, si
push eax
push ecx
lea edx, [esp + 0x28]
push str.GetACP:_ld_n_r_system:_ld_n_ruser:_ld_n_rDefsystem_ld_n_rdefuser_ld_n_r
push edx
call fcn.00401ad0
mov edi, dword [esp + 0x30]
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x1c
push edi
call ebp
cmp si, 0x404
jne 0x409f1a
push 8
push str.TChinese
jmp 0x409f38
cmp si, 0x409
jne 0x409f2a
push 7
push str.English
jmp 0x409f38
cmp si, 0x804
jne 0x409f41
push 8
push str.SChinese
lea ecx, [esp + 0x18]
call fcn.004017d0
mov esi, dword [esp + 0x10]
push esi
call ebp
add esi, 0xfffffff0
push esi
call fcn.004016c0
mov ebp, dword [esp + 0x14c]
add eax, 0x10
mov dword [ebp], eax
lea eax, [edi - 0x10]
add esp, 4
mov byte [esp + 0x140], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409f83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov byte [esp + 0x140], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409fa2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov dword [esp + 0x140], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x409fc4
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov ecx, dword [esp + 0x138]
pop edi
pop esi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x128]
pop ebx
call fcn.00417188
add esp, 0x134
ret 8
Function at 0x40a720
Capabilities:
Delete directory

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x20c]
test eax, eax
jne 0x40a750
push ecx
lea esi, [edi + 0x108]
mov ecx, esp
mov dword [esp + 0xc], esp
push esi
call fcn.004053e0
mov ecx, edi
call fcn.00409a40
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ecx
ret
Function at 0x40b060
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4327e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18c
mov eax, dword [0x442184]
push ebx
push ebp
push esi
mov dword [esp + 0x194], eax
push edi
mov esi, ecx
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x1a4], ebx
je 0x40b0cf
mov ecx, dword [esp + 0x1ac]
mov eax, dword [eax + 0x20]
push ecx
push eax
call fcn.004181e3
add esp, 8
test eax, eax
je 0x40b0cf
mov edi, dword [esi + 8]
cmp edi, ebx
je 0x40b0cc
mov ecx, edi
call fcn.00402190
push edi
call fcn.00425c71
add esp, 4
mov dword [esi + 8], ebx
cmp dword [esi + 8], ebx
jne 0x40b148
push 0x24
call fcn.00425c46
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x1a4], 1
je 0x40b0f7
mov ecx, eax
call fcn.00409910
jmp 0x40b0f9
xor eax, eax
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1ac]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x14], esp
mov edi, esp
push eax
mov byte [esp + 0x1ac], bl
call fcn.004016c0
add eax, 0x10
mov dword [edi], eax
mov ecx, dword [esi + 8]
add esp, 4
call fcn.0040aa90
cmp al, bl
jne 0x40b148
mov edi, dword [esi + 8]
cmp edi, ebx
je 0x40b145
mov ecx, edi
call fcn.00402190
push edi
call fcn.00425c71
add esp, 4
mov dword [esi + 8], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x40b214
push 0x104
lea edx, [esp + 0x98]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str..inf
add eax, 0x20
push eax
push ecx
call fcn.00404c70
add esp, 0xc
call fcn.0040b6c0
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0xc
xor eax, eax
lea edx, [esp + 0x94]
push edx
push 0x7f
mov ecx, 0x20
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
push 0x4347e8
push str.ShowNotFindInfo
push str.StaticInfoTranslate
call ebp
mov dl, byte [esp + 0x14]
xor ecx, ecx
cmp dl, 0x30
setne cl
xor eax, eax
lea edx, [esp + 0x94]
push edx
push 0x7f
lea edi, [esp + 0x1c]
mov dword [esi], ecx
mov ecx, 0x20
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
push str.English
push str.Language
push str.StaticInfoTranslate
call ebp
lea eax, [esp + 0x14]
lea ecx, [esi + 4]
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40b200
sub eax, edi
push eax
lea edx, [esp + 0x18]
push edx
call fcn.004017d0
mov eax, dword [esp + 0x1ac]
mov esi, dword [esi + 8]
add eax, 0xfffffff0
mov dword [esp + 0x1a4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b243
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x198]
mov eax, esi
call fcn.00417188
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x198
ret 4