joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59e674
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405248
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x59e7e2
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.004c641c
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.004c643c
jmp 0x59e7ae
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00405008
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.0040a2dc
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.004095d0
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.004095d0
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.004051a4
je 0x59e78e
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.00405008
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.004095d0
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.004095d0
mov edx, dword [ebp - 0x148]
pop eax
call fcn.004051a4
jne 0x59e7a5
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
push eax
call sub.KERNEL32.DLL_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.004c645c
test eax, eax
jne 0x59e6ef
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59e7e9
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00404dbc
lea eax, [ebp - 4]
call fcn.00404d98
ret
Function at 0x59ef7c
Capabilities:
Create process on windows
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x59f16a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x368]
call fcn.00464578
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.005972f8
mov edx, dword [ebp - 0x20]
mov eax, 0x63c47c
call fcn.00404dec
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [0x63c47c]
call fcn.00405258
push eax
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
push 0
push 0
push 0
push edi
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push 0x63c4b0
push edi
call sub.KERNEL32.DLL_ReadFile
push 0
push 0
mov eax, dword [0x63c4ec]
push eax
push edi
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea eax, [ebp - 0xc]
push eax
push 0xf8
push 0x63c4f0
push edi
call sub.KERNEL32.DLL_ReadFile
mov eax, dword [0x63c524]
mov dword [ebp - 4], eax
mov esi, dword [0x63c540]
push edi
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [0x63c478]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x19], 0
mov eax, dword [0x63c47c]
call fcn.0059eb18
test al, al
jne 0x59f087
push 0xa
push 0
push 0
lea edx, [ebp - 0x28]
mov eax, dword [ebx + 0x368]
call fcn.00464578
mov eax, dword [ebp - 0x28]
call fcn.00405258
push eax
push 0x59f178
push 0
call sub.shell32.dll_ShellExecuteA
mov byte [ebp - 0x19], 1
push 0x407f4000
push 0
mov eax, ebx
call fcn.005a1c64
mov eax, dword [0x63c47c]
call fcn.0059eb18
cmp al, 1
jne 0x59f087
mov eax, dword [0x63c47c]
call fcn.0059e7f4
push eax
push 0
push 0x18
call sub.KERNEL32.DLL_OpenProcess
mov ebx, eax
push 4
push 0x1000
push esi
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov edi, eax
lea eax, [ebp - 8]
push eax
push esi
push edi
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.KERNEL32.DLL_ReadProcessMemory
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
push esi
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.KERNEL32.DLL_VirtualProtectEx
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 8]
push eax
push esi
push edi
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_CloseHandle
push ebx
call sub.KERNEL32.DLL_CloseHandle
push 0x4000
push esi
push edi
call sub.KERNEL32.DLL_VirtualFree
cmp byte [ebp - 0x19], 1
jne 0x59f147
mov eax, dword [0x63c47c]
call fcn.0059e674
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59f171
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00404dbc
lea eax, [ebp - 0x20]
call fcn.00404d98
ret
Function at 0x5a5670
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x5a56e0
call fcn.0040a0e8
test al, al
je 0x5a5697
push 0x80
push 0x5a56ec
call sub.KERNEL32.DLL_SetFileAttributesA
mov eax, 0x5a56e0
call fcn.0040a210
mov eax, 0x5a5700
call fcn.0040a0e8
test al, al
je 0x5a56af
mov eax, 0x5a5700
call fcn.0040a210
mov eax, 0x5a5714
call fcn.0040a0e8
test al, al
je 0x5a56d6
push 0x80
push 0x5a5724
call sub.KERNEL32.DLL_SetFileAttributesA
mov eax, 0x5a5714
call fcn.0040a210
ret
Function at 0x402160
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4021f3
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push edi
lea eax, [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov edi, dword [esp + 0x2c]
test eax, eax
je 0x4021e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
test edi, 0x100
ja 0x4021cf
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea ecx, [esp + 0xc]
push ecx
push 0
mov edx, ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and edi, 0x27
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0x10

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

Disassembly:
push 0xffffffffffffffff
push 0x41f818
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x42e7a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x28]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402626
and al, 0x10
xor cl, cl
cmp cl, al
sbb edx, edx
neg edx
jne 0x4026ec
push ebx
lea ecx, [esp + 0x14]
call fcn.004024b0
mov esi, dword [esp + 0x10]
mov eax, esi
mov dword [esp + 0x20], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402641
sub eax, edx
sar eax, 1
cmp eax, 1
jle 0x402664
cmp word [esi + eax*2 - 2], 0x5c
jne 0x402664
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
push 0x5c
push esi
call dword [sym.imp.MSVCR90.dll_wcsrchr]
add esp, 8
push esi
test eax, eax
jne 0x402695
call sub.mfc90u.dll_delete__
add esp, 4
mov eax, 0xf
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
xor edx, edx
mov word [eax], dx
call fcn.004025e0
mov edi, eax
add esp, 4
test edi, edi
je 0x4026c6
push esi
call sub.mfc90u.dll_delete__
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4026e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xb7
jne 0x4026a8
push esi
call sub.mfc90u.dll_delete__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x403210
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x41f928
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x42e7a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.Cabinet::CExtract.0
mov dword [esp + 0x14], 5
call fcn.00401f20
test eax, eax
je 0x403272
mov eax, dword [0x42e904]
cmp eax, 0xffffffff
je 0x403272
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x403272
mov eax, dword [0x42e904]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [esi + 0x110c]
test eax, eax
je 0x403283
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x10fc]
test eax, eax
je 0x403296
push eax
call sub.mfc90u.dll_delete
add esp, 4
mov ecx, dword [esi + 0x10dc]
push ecx
call sub.mfc90u.dll_delete__
mov eax, dword [esi + 0x10c0]
add esp, 4
test eax, eax
je 0x4032b8
push eax
call sub.mfc90u.dll_delete__
add esp, 4
mov dword [esi + 0x10c0], 0
mov edx, dword [esi + 0x60]
push edx
call sub.mfc90u.dll_delete__
mov eax, dword [esi + 0x58]
push eax
call sub.mfc90u.dll_delete__
mov ecx, dword [esi + 0x50]
push ecx
call sub.mfc90u.dll_delete
mov edx, dword [esi + 0x54]
push edx
call sub.mfc90u.dll_delete
mov eax, dword [esi + 0x14]
push eax
call sub.mfc90u.dll_delete__
mov ecx, dword [esi + 0xc]
push ecx
call sub.mfc90u.dll_delete__
add esp, 0x18
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x403c50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ebp, ebp
cmp dword [esi + 0x1108], eax
je 0x403c7f
mov dword [esi + 0x10e8], ebp
mov dword [esi + 0x10ec], ebp
mov dword [esi + 0x10e4], 0x3f3
pop esi
xor eax, eax
pop ebp
ret
mov eax, dword [0x42e904]
push edi
cmp eax, 0xffffffff
je 0x403cd5
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
cmp eax, ebp
je 0x403cb3
pop edi
mov dword [esi + 0x10e8], ebp
mov dword [esi + 0x10ec], ebp
mov dword [esi + 0x10e4], 0x3f4
pop esi
xor eax, eax
pop ebp
ret
mov eax, dword [0x42e904]
cmp eax, 0xffffffff
je 0x403cd5
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x403cd5
mov eax, dword [0x42e904]
push eax
call edi
cmp eax, ebp
jne 0x403cf1
pop edi
mov dword [esi + 0x10e4], ebp
mov dword [esi + 0x10ec], ebp
mov dword [esi + 0x10e8], 0xe
pop esi
xor eax, eax
pop ebp
ret
lea edi, [esi + 0x10cc]
xor eax, eax
mov dword [edi + 0x18], ebp
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x20], ebp
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
cmp dword [esi + 0x10f0], ebp
jne 0x403db4
cmp dword [esi + 0x110c], ebp
jne 0x403dba
push ebx
push str.Cabinet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
mov dword [esi + 0x110c], eax
call ebx
mov ecx, dword [esi + 0x110c]
push str.FDICopy
push ecx
mov dword [esi + 0x1110], eax
call ebx
mov edx, dword [esi + 0x110c]
push str.FDIIsCabinet
push edx
mov dword [esi + 0x1114], eax
call ebx
mov dword [esi + 0x1118], eax
mov eax, dword [esi + 0x110c]
push str.FDIDestroy
push eax
call ebx
mov dword [esi + 0x111c], eax
pop ebx
cmp dword [esi + 0x1110], ebp
je 0x403da1
cmp dword [esi + 0x1114], ebp
je 0x403da1
cmp dword [esi + 0x1118], ebp
je 0x403da1
cmp eax, ebp
jne 0x403dba
mov dword [esi + 0x110c], ebp
mov dword [edi + 0x18], 0x3e8
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x20], ebp
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov ecx, dword [esi + 0x1110]
push edi
push 1
push 0x403460
push fcn.00403430
push 0x4027f0
push 0x4033e0
push 0x403c20
push 0x402010
push 0x402000
call ecx
add esp, 0x24
xor edx, edx
cmp eax, ebp
setne dl
pop edi
mov dword [esi + 0x10f0], eax
pop esi
pop ebp
mov eax, edx
ret
Function at 0x4046f0
Capabilities:
Parse url

Disassembly:
mov eax, 0x1064
call fcn.0041d820
mov eax, dword [0x42e7a0]
xor eax, esp
mov dword [esp + 0x1060], eax
mov eax, dword [esp + 0x1070]
mov ecx, dword [esp + 0x1074]
push ebx
push ebp
mov ebp, dword [esp + 0x1070]
push esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1084]
mov esi, eax
mov dword [esp + 0x20], ecx
xor ecx, ecx
and esi, 0x2e000000
push edi
mov edi, dword [esp + 0x107c]
mov dword [esp + 0x10], 0x824
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ecx
test eax, 0x90000000
je 0x40477a
cmp dword [edi + 0x30], ecx
je 0x40477a
test eax, 0x2000000
je 0x404772
mov dword [esp + 0x18], 1
jmp 0x40477a
mov dword [esp + 0x20], SysStringLen
push esi
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x30]
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
test eax, eax
jne 0x4047e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4047e1
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.mfc90u.dll_new__
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4047e1
push esi
lea eax, [esp + 0x14]
push eax
push ebx
push ebp
mov dword [esp + 0x24], 1
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
test eax, eax
jne 0x4047ec
push ebx
call sub.mfc90u.dll_delete__
add esp, 4
xor eax, eax
jmp 0x404872
lea ebx, [esp + 0x28]
mov ecx, dword [esp + 0x20]
push edi
push ecx
push 0
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
cmp dword [esp + 0x18], 0
mov esi, eax
je 0x40483c
mov edx, dword [edi + 0x2c]
push 0x2100000
push 0
push 0
push edx
call dword [sym.imp.SHLWAPI.dll_UrlUnescapeW]
test eax, eax
jge 0x40482f
cmp dword [esp + 0x14], 0
je 0x4047e1
push ebx
call sub.mfc90u.dll_delete__
add esp, 4
xor eax, eax
jmp 0x404872
mov eax, dword [edi + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [edi + 0x30], eax
cmp dword [esp + 0x14], 0
je 0x40484c
push ebx
call sub.mfc90u.dll_delete__
add esp, 4
test esi, esi
jne 0x40485c
mov ecx, dword [esp + 0x1c]
mov dword [ecx], 0xffffffff
jmp 0x404870
mov dx, word [edi + 0x18]
mov eax, dword [esp + 0x24]
mov word [eax], dx
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x1c]
mov dword [edx], ecx
mov eax, esi
mov ecx, dword [esp + 0x1070]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041d7e6
add esp, 0x1064
ret
Function at 0x4049a0
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x42e7a0]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
push eax
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
lea eax, [esp + 0xc]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4049d6
push ebx
sub eax, edx
push ebp
sar eax, 1
push esi
lea ebp, [esp + eax*2 + 0xc]
push edi
mov esi, ebp
xor ebx, ebx
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x404a34
cmp eax, 3
jne 0x404a2d
cmp word [esi], 0x5c
je 0x404a26
lea edx, [esp + 0x10]
cmp esi, edx
je 0x404a4f
sub esi, 2
cmp word [esi], 0x5c
jne 0x404a15
xor eax, eax
mov word [esi], ax
jmp 0x404a49
cmp eax, 0xb7
jne 0x404a4f
cmp esi, ebp
je 0x404a6a
mov ecx, 0x5c
mov word [esi], cx
add esi, 2
cmp word [esi], 0
jne 0x404a40
inc ebx
cmp ebx, 0xa
jl 0x4049f1
xor eax, eax
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041d7e6
add esp, 0x20c
ret
mov eax, 1
jmp 0x404a51
Function at 0x4070c0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x42c
mov eax, dword [0x42e7a0]
xor eax, esp
mov dword [esp + 0x428], eax
push esi
push 0x424
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x10], 0
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x440]
add esp, 0xc
push ecx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40711f
xor eax, eax
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.0041d7e6
add esp, 0x42c
ret
push edi
lea edx, [esp + 8]
push edx
push esi
mov dword [esp + 0x10], 0x428
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x407184
mov edi, dword [esp + 0x43c]
mov edi, edi
mov ecx, edi
lea eax, [esp + 0x28]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40716c
test dx, dx
je 0x407168
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40716c
add eax, 4
add ecx, 4
test dx, dx
jne 0x407146
xor eax, eax
jmp 0x407171
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4071a4
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x407140
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.0041d7e6
add esp, 0x42c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x430]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0041d7e6
add esp, 0x42c
ret

Function at 0x4071d0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x42e7a0]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push edi
xor edi, edi
push 0x228
lea eax, [esp + 0x10]
push edi
push eax
mov dword [esp + 0x14], edi
call sub.MSVCR90.dll_memset
add esp, 0xc
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x407227
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0041d7e6
add esp, 0x230
ret
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40726e
push ebx
mov ebx, dword [esp + 0x240]
mov edx, dword [esp + 0x14]
push ebx
push edx
call fcn.004070c0
add esp, 8
test eax, eax
jne 0x407269
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x407246
jmp 0x40726d
mov edi, dword [esp + 0x14]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0041d7e6
add esp, 0x230
ret
Function at 0x407940
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x230]
sub esp, 0x230
push 0xffffffffffffffff
push 0x4200f2
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42e7a0]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push str.KIES.EXE
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x2c], esi
call dword [0x4224ec]
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call dword [0x422778]
push ebx
push 2
mov dword [ebp], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp]
push eax
push edi
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 2
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4079d4
push 0x429b58
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], ebx
call sub.MSVCR90.dll__CxxThrowException
lea edx, [ebp + 0x24]
push edx
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::MakeUpper]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90u.dll_]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Compare]
cmp eax, ebx
jne 0x407a16
push 0x429b58
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 1
call sub.MSVCR90.dll__CxxThrowException
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
lea ecx, [ebp]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4079d4
jmp 0x407a43
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
cmp dword [ebp - 0x20], ebx
je 0x407a63
mov eax, dword [esi + 0x20]
push 0x64
push 0x1f47
mov dword [esi + 0x8c0], ebx
push eax
jmp 0x407a77
mov ecx, dword [esi + 0x20]
inc dword [esi + 0x8c0]
push 0x7d0
push 0x1f46
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.0041d7e6
add ebp, 0x230
mov esp, ebp
pop ebp
ret
Function at 0x408e30
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x420379
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x42e7a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00407ac0
lea ecx, [esp + 8]
call dword [0x422778]
mov eax, dword [esi + 0x8ac]
mov ecx, dword [esi + 0x8a8]
push eax
push ecx
lea edx, [esp + 0x10]
push str.OnKiesSyncServer_PostMessage_Called_:_wParam_d__lParam_d_n
push edx
mov dword [esp + 0x24], 0
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x10
lea ecx, [esp + 8]
call dword [sym.imp.mfc90u.dll_]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esi + 0x20]
push 0
push 0x7d0
push 0x1f46
push eax
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [esp + 8]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret