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

Disassembly:
cmp ecx, dword [0x1002b3ec]
jne 0x10011560
repz ret
jmp fcn.10013bce

Function at 0x1001af55
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1001408c
and dword [ebp - 4], 0
cmp dword [0x1002e128], 0
mov ebx, eax
jne 0x1001b006
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001b0b7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1001b0b7
push eax
call fcn.1001401a
mov dword [esp], 0x10025110
push edi
mov dword [0x1002e128], eax
call esi
push eax
call fcn.1001401a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1002e12c], eax
call esi
push eax
call fcn.1001401a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1002e130], eax
call esi
push eax
call fcn.1001401a
pop ecx
mov dword [0x1002e138], eax
test eax, eax
je 0x1001b006
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1001401a
pop ecx
mov dword [0x1002e134], eax
mov eax, dword [0x1002e134]
cmp eax, ebx
je 0x1001b05e
cmp dword [0x1002e138], ebx
je 0x1001b05e
push eax
call fcn.10014095
push dword [0x1002e138]
mov esi, eax
call fcn.10014095
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1001b05e
test edi, edi
je 0x1001b05e
call esi
test eax, eax
je 0x1001b055
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001b055
test byte [ebp - 0xc], 1
jne 0x1001b05e
or dword [ebp + 0x10], 0x200000
jmp 0x1001b097
mov eax, dword [0x1002e12c]
cmp eax, ebx
je 0x1001b097
push eax
call fcn.10014095
pop ecx
test eax, eax
je 0x1001b097
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001b097
mov eax, dword [0x1002e130]
cmp eax, ebx
je 0x1001b097
push eax
call fcn.10014095
pop ecx
test eax, eax
je 0x1001b097
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1002e128]
call fcn.10014095
pop ecx
test eax, eax
je 0x1001b0b7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001b0b9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001e031
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x1002e268], 0
push esi
jne 0x1001dfa4
call fcn.1001deca
test eax, eax
je 0x1001dfe7
mov eax, dword [0x1002e268]
cmp eax, 1
jne 0x1001dfc5
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1001dfe7
pop esi
ret
push eax
call dword [0x1002e270]
test eax, eax
jne 0x1001e02f
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1001dfeb
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x1002e268]
call dword [0x1002e270]
mov edi, eax
test edi, edi
je 0x1001e010
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1001e02c
mov edi, esi
add esi, 0xff0
push edi
push dword [0x1002e268]
call dword [0x1002e26c]
add edi, 0x10
cmp edi, esi
jb 0x1001e018
mov eax, edi
pop edi
pop esi
ret
jmp 0x1001df91
Function at 0x401140
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4560b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1244
call fcn.00437610
mov eax, dword [0x473eb8]
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1250], ecx
mov dword [ebp - 0x18], str.bcr.dll
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, 0x4754b8
call fcn.004013d0
push eax
push 0x4586d0
push 0x104
lea ecx, [ebp - 0x230]
push ecx
call fcn.00437573
add esp, 0x14
mov edx, dword [ebp - 0x18]
push edx
push 0x4586d8
mov ecx, 0x4754b8
call fcn.004013d0
push eax
push 0x4586e0
push 0x104
lea eax, [ebp - 0x128]
push eax
call fcn.00437573
add esp, 0x18
push 0
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x230]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4011f9
jmp 0x40130b
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401214
jmp 0x40130b
xor ecx, ecx
jne 0x401185
push str.GetCookieValue
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x401239
jmp 0x401301
mov dword [ebp - 4], 0
mov dword [ebp - 0x23c], str.duoyi.com
mov dword [ebp - 0x238], str.henhaoji.com
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x1244], str.pfsid
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x1248], eax
jmp 0x401285
mov ecx, dword [ebp - 0x1248]
add ecx, 4
mov dword [ebp - 0x1248], ecx
mov edx, dword [ebp - 0x1248]
cmp dword [edx], 0
je 0x4012f2
push 0x1000
lea eax, [ebp - 0x1240]
push eax
mov ecx, dword [ebp - 0x1244]
push ecx
mov edx, dword [ebp - 0x1248]
mov eax, dword [edx]
push eax
call dword [ebp - 0x1c]
mov byte [ebp - 0x1251], al
mov cl, byte [ebp - 0x1251]
mov byte [ebp - 0x1249], cl
movzx edx, byte [ebp - 0x1249]
test edx, edx
je 0x4012f0
lea eax, [ebp - 0x1240]
push eax
mov ecx, dword [ebp - 0x1250]
add ecx, 8
call fcn.004013b0
mov ecx, dword [ebp - 0x1250]
mov dword [ecx + 4], 1
jmp 0x4012f2
jmp 0x401276
jmp 0x4012fa
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x20]
call fcn.004375fb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402700
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456216
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00401370
mov dword [ebp - 4], 0
push 0x458c20
mov ecx, 0x4754b8
call fcn.004013d0
push eax
push 0x458c2c
lea eax, [ebp - 0x14]
push eax
call fcn.004037b0
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.004013d0
push eax
mov ecx, dword [ebp + 8]
shl ecx, 4
mov edx, dword [ecx + 0x458b68]
push edx
mov eax, dword [ebp + 8]
shl eax, 4
mov ecx, dword [eax + 0x458b6c]
push ecx
push 0x458c34
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 8]
shl edx, 4
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx + 0x458b60]
jl 0x40279e
mov ecx, dword [ebp + 8]
shl ecx, 4
mov edx, dword [ebp - 0x10]
cmp edx, dword [ecx + 0x458b64]
jle 0x4027ad
mov eax, dword [ebp + 8]
shl eax, 4
mov ecx, dword [eax + 0x458b68]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401390
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x402d20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45624c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x473eb8]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
call fcn.00401370
mov dword [ebp - 4], 0
push 0x458c5c
mov ecx, 0x4754b8
call fcn.004013d0
push eax
push 0x458c68
lea eax, [ebp - 0x10]
push eax
call fcn.004037b0
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.004013d0
push eax
push 0x20
lea ecx, [ebp - 0x34]
push ecx
push 0x458c70
push 0x458c74
push 0x458c88
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.__d__d
push 0x20
lea ecx, [ebp - 0x34]
push ecx
call fcn.00438100
add esp, 0x14
cmp eax, 2
jne 0x402dc7
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jle 0x402dc7
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jg 0x402de1
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401390
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004375fb
mov esp, ebp
pop ebp
ret
Function at 0x408850
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push 0x44
push 0
lea eax, [ebp - 0x60]
push eax
call fcn.004380a0
add esp, 0xc
mov dword [ebp - 0x60], 0x44
push 0x10
push 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.004380a0
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4088c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
push eax
push 1
call fcn.0040aba0
add esp, 8
jmp 0x408905
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x10], 0
je 0x4088e5
push 0x10
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.004376e0
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
call fcn.0040aba0
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x409c40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45661e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
mov dword [ebp - 0xc8], ecx
movzx eax, byte [ebp + 8]
push eax
push str.AskUserToCloseGame__d
push 0x47549c
call fcn.0040f2c0
add esp, 0xc
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x1c], 0
je 0x409ddc
mov ecx, dword [ebp - 0xc8]
call fcn.00409df0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x409ddc
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x10]
je 0x409ddc
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x409cdf
mov dword [ebp - 0x1c], 1
jmp 0x409d79
cmp dword [ebp - 0x18], 0
jne 0x409d79
push 0
lea ecx, [ebp - 0xb4]
call fcn.004048f0
mov dword [ebp - 4], 0
mov dword [ebp - 0xb8], 2
mov dword [ebp - 0xc0], 0x45aa8c
mov dword [ebp - 0xbc], 0x45aa98
push 0x45aaa4
push 2
lea ecx, [ebp - 0xc0]
push ecx
push 0x45aaac
lea ecx, [ebp - 0xb4]
call fcn.004049f0
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xcc], edx
cmp dword [ebp - 0xcc], 0
je 0x409d50
jmp 0x409d59
mov dword [ebp - 0x1c], 1
jmp 0x409d60
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.00404980
cmp dword [ebp - 0x1c], 0
je 0x409dd7
mov eax, dword [ebp - 0x14]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0
je 0x409dd7
push 1
mov ecx, dword [ebp - 0xc4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x409dc3
mov dword [ebp - 0x1c], 1
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409dca
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0xc4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409c97
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40e720
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 1
push 0
push 0
mov ecx, 0x475168
call fcn.0040ebf0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esp, ebp
pop ebp
ret

Function at 0x40f360
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x204
mov eax, dword [0x473eb8]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x208]
test eax, eax
push esi
jne 0x40f43d
mov eax, dword [esp + 0x210]
test eax, eax
je 0x40f43d
push 0x200
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f3e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x475498]
mov ecx, dword [eax]
push esi
push 0x99
push str._IWD:_d__mfn:_u
push eax
call dword [ecx + 4]
add esp, 0x10
xor edx, edx
mov eax, esi
or edx, 1
pop esi
mov ecx, dword [esp + 0x200]
call fcn.004375fb
add esp, 0x204
ret
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40f48d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x475498]
mov ecx, dword [eax]
push esi
push 0xa1
push str._IWD:_d__scwd:_u
push eax
call dword [ecx + 4]
add esp, 0x10
xor edx, edx
mov eax, esi
or edx, 1
pop esi
mov ecx, dword [esp + 0x200]
call fcn.004375fb
add esp, 0x204
ret
lea edx, [esp + 4]
push edx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x40f48d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x475498]
mov ecx, dword [eax]
push esi
push 0x91
push str._IWD:_d__cwd:_u
push eax
call dword [ecx + 4]
add esp, 0x10
xor edx, edx
mov eax, esi
or edx, 1
pop esi
mov ecx, dword [esp + 0x200]
call fcn.004375fb
add esp, 0x204
ret
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f494
sub eax, edx
push eax
lea edx, [esp + 8]
push edx
mov ecx, 0x4754b8
call fcn.00401610
mov ecx, dword [esp + 0x204]
xor eax, eax
xor edx, edx
pop esi
call fcn.004375fb
add esp, 0x204
ret
Function at 0x40f4d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push ebx
push esi
push edi
mov ebx, dword [esp + 0x64]
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x68]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea edx, [esp + 0x20]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
push edi
push ebx
mov dword [esp + 0x44], 0x44
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40f561
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push ebx
mov esi, eax
mov eax, dword [0x475498]
mov ecx, dword [eax]
push esi
push 0x52
push str._RP:_d_CreateProcess_err:_u_n___s_n___s
push eax
call dword [ecx + 4]
push edi
push ebx
push esi
push 0x53
push 0x45b94c
push 0x47549c
call fcn.0040f2c0
add esp, 0x30
pop edi
mov eax, esi
xor edx, edx
pop esi
or edx, 1
pop ebx
add esp, 0x54
ret
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x40f579
mov edx, dword [esp + 0xc]
push 0x1388
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [esp + 0x70]
test eax, eax
mov ecx, dword [esp + 0xc]
je 0x40f59c
mov edx, dword [esp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0xc], edx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop edi
pop esi
xor eax, eax
xor edx, edx
pop ebx
add esp, 0x54
ret
Function at 0x40f5c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x53c
mov eax, dword [0x473eb8]
push ebx
push esi
push edi
push str.Psapi.dll
mov dword [esp + 0x548], eax
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
xor ebx, ebx
test edi, edi
mov dword [esp + 0x14], edi
je 0x40f608
push str.GetModuleFileNameExA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x40f627
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40f717
xor eax, eax
mov ecx, 0x4a
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40f656
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40f70c
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea esp, [esp]
test ebx, ebx
je 0x40f6bb
mov ecx, dword [esp + 0x20]
push ecx
push 0
push 0x410
call edi
mov esi, eax
test esi, esi
je 0x40f6e2
push 0x400
lea edx, [esp + 0x144]
push edx
push 0
push esi
call ebx
test eax, eax
je 0x40f6ae
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x144]
push ecx
call fcn.0043974d
add esp, 8
test eax, eax
jne 0x40f6ae
mov edx, dword [esp + 0x20]
mov dword [esp + 0xc], edx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
jmp 0x40f6d8
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.0043974d
add esp, 8
test eax, eax
jne 0x40f6e6
mov edx, dword [esp + 0x20]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40f70c
jmp 0x40f6e6
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40f660
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x40f70c
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40f722
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x544]
mov eax, dword [esp + 0xc]
call fcn.004375fb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410520
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x456a68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
push eax
lea ecx, [esp + 0x14]
call fcn.0040b170
push 0x5c
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0
call fcn.00410270
mov eax, dword [esp + 0x28]
cmp byte [eax], 0
mov esi, eax
je 0x4105a9
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi], 0x5c
jne 0x4105a1
mov ecx, esi
sub ecx, eax
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00404810
mov edx, dword [esp + 0x10]
push 0
push edx
call ebx
test eax, eax
jne 0x41059f
call ebp
mov edi, eax
cmp edi, 0xb7
jne 0x4105e6
mov eax, esi
mov cl, byte [esi + 1]
inc esi
test cl, cl
jne 0x410572
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4105cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
pop ebp
xor eax, eax
xor edx, edx
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
xor esi, esi
add eax, 0xfffffff0
or esi, 1
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410611
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
mov edx, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x410630
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov byte [esi + 0x24], 1
mov eax, dword [esi + 0x20]
test eax, eax
je 0x41064f
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0x20], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x410689
mov ecx, dword [esi + 0x1c]
push 0xbb8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x410678
mov edx, dword [esi + 0x1c]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1c], 0
pop esi
ret
Function at 0x4143d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x456d6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov dword [esp + 0x18], ebx
mov byte [esi + 0x1c], bl
lea edi, [esi + 0x34]
mov ecx, edi
mov byte [esp + 0x18], 1
call fcn.00412c70
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov byte [esp + 0x18], 2
call fcn.00449143
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x44], eax
mov dword [esi + 0x60], 0xf
mov dword [esi + 0x5c], ebx
mov byte [esi + 0x4c], bl
mov byte [esp + 0x18], 4
call fcn.00449143
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x70], eax
mov byte [esp + 0x18], 5
call fcn.00449143
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x74], eax
mov byte [esp + 0x18], 6
call fcn.00449143
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x78], eax
lea ecx, [esi + 0x80]
mov byte [esp + 0x18], 7
call fcn.00411fe0
push ebx
lea ecx, [esi + 0xa8]
mov byte [esp + 0x1c], 8
call fcn.00410b90
mov dword [esi + 0x114], 0xf
mov dword [esi + 0x110], ebx
mov byte [esi + 0x100], bl
lea ecx, [esi + 0x118]
mov byte [esp + 0x18], 0xa
call fcn.00416c90
lea edi, [esi + 0x1bc]
mov ecx, edi
mov byte [esp + 0x18], 0xb
call fcn.00412c90
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea ecx, [esi + 0x1c8]
mov byte [esp + 0x18], 0xc
call fcn.00417b30
mov ecx, dword [esp + 0x10]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0x1b8], ebx
mov dword [esi + 0x1f8], ebx
mov dword [esi + 0x1fc], ebx
mov dword [esi + 0x200], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret