joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9961
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4de034]
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 0x4a99ac
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a9e23
test al, al
jne 0x4a99a6
sub edx, 2
cmp edx, edi
jne 0x4a998c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a99ce
lea eax, [edi + 2]
cmp edx, eax
je 0x4a99ce
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a955a
add esp, 0x10
jmp 0x4a9ac8
push esi
lea ecx, [ebp - 0x255]
call fcn.004a9e23
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 0x4a9a11
push dword [ebp - 0x25c]
jmp 0x4a99be
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 0x4a9a4e
cmp word [ebp - 0x226], 0
je 0x4a9a6f
cmp word [ebp - 0x226], ax
jne 0x4a9a4e
cmp word [ebp - 0x224], 0
je 0x4a9a6f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a955a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a9abb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a9a28
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a9aa3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a9ac8
push 0x4a8f42
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405bd7
add esp, 0x10
jmp 0x4a9a98
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.0040335a
leave
ret

Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401819
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40182d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40184e
cmp esi, eax
jae 0x401827
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401840
cmp esi, eax
jae 0x401827
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402bb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44fd9a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov eax, dword [0x46aa78]
push ebx
push esi
mov dword [esp + 0x220], eax
mov eax, dword [ebp + 8]
push edi
push eax
mov esi, ecx
push 0xb4
mov dword [esp + 0x14], esi
call fcn.00446a06
xor ebx, ebx
mov dword [esi], 0x4538f8
mov dword [esp + 0x234], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov byte [esp + 0x234], 1
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x80], eax
xor eax, eax
mov byte [esp + 0x10], bl
mov ecx, 0x40
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 0x104
mov byte [esp + 0x23c], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x104
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x120]
push edx
call fcn.00430cf0
mov eax, dword [0x46bae0]
mov ecx, dword [eax + 0x70]
add esp, 0xc
cmp ecx, 0x10
jb 0x402c81
mov eax, dword [eax + 0x5c]
jmp 0x402c84
add eax, 0x5c
push eax
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x118]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402ca0
sub eax, edx
push eax
lea ecx, [esp + 0x11c]
push ecx
lea ecx, [esi + 0x80]
call fcn.004021c0
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x224]
mov eax, esi
call fcn.00430cd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407050
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4500eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x530
mov eax, dword [0x46aa78]
push ebx
push esi
push edi
push 0
mov dword [esp + 0x538], eax
mov ebx, ecx
call fcn.00422bd0
mov esi, eax
add esp, 4
test esi, esi
je 0x4071c0
xor eax, eax
mov byte [esp + 0x28], 0
mov ecx, 0x40
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x28]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str._partner_.tlbb
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
xor eax, eax
mov byte [esp + 0x130], 0
mov ecx, 0xff
lea edi, [esp + 0x131]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebx + 0x18]
mov edi, 0x10
cmp eax, edi
jb 0x4070f7
mov ecx, dword [ebx + 4]
jmp 0x4070fa
lea ecx, [ebx + 4]
mov eax, dword [0x46bae0]
cmp dword [eax + 0xf4], edi
jb 0x40710f
mov eax, dword [eax + 0xe0]
jmp 0x407114
add eax, 0xe0
push ecx
push eax
push str._s_partner_s
lea edx, [esp + 0x13c]
push 0x400
push edx
call fcn.00430c51
mov eax, dword [esi]
add esp, 0x14
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x13c]
push edx
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x20]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00406de0
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x548], 0
call esi
mov eax, dword [esp + 0x20]
push 7
push str.SUCCESS
push eax
push 0
lea ecx, [esp + 0x1c]
call fcn.00406c50
test eax, eax
jne 0x4071ad
cmp dword [ebx + 0x38], edi
jb 0x4071a7
mov ebx, dword [ebx + 0x24]
jmp 0x4071aa
add ebx, 0x24
push ebx
call esi
cmp dword [esp + 0x24], edi
jb 0x4071c0
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00446915
add esp, 4
mov ecx, dword [esp + 0x53c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x534]
call fcn.00430cd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407270
Capabilities:
Resume thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40729e
lea eax, [esp + 4]
push eax
push 4
push esi
push 0x4071f0
push 0
push 0
call fcn.00431c39
add esp, 0x18
push eax
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ecx
ret
Function at 0x40aa70
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4503fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
mov eax, dword [0x46aa78]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x244]
mov dword [esp + 0x230], eax
mov eax, dword [esi + 0x1c]
xor ebx, ebx
cmp eax, ebx
mov ebp, ecx
jne 0x40aad4
cmp dword [esi + 0x18], 0x10
jb 0x40aac3
mov esi, dword [esi + 4]
push esi
call fcn.00411e20
add esp, 4
jmp 0x40ac31
add esi, 4
push esi
call fcn.00411e20
add esp, 4
jmp 0x40ac31
mov eax, dword [ebp + 0x44]
push edi
mov edi, 0x10
cmp eax, edi
jb 0x40aae6
mov eax, dword [ebp + 0x30]
jmp 0x40aae9
lea eax, [ebp + 0x30]
push 0x104
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00430cf0
mov eax, dword [esi + 0x18]
add esp, 0xc
cmp eax, edi
lea edi, [esi + 4]
jb 0x40ab0a
mov eax, dword [edi]
jmp 0x40ab0c
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push ebx
push 0x45675a
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], 0
call fcn.004023a0
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x14]
push eax
push esi
mov ecx, ebp
mov dword [esp + 0x24c], ebx
call fcn.00409c30
mov bl, al
mov eax, dword [esp + 0x28]
neg bl
sbb bl, bl
inc bl
cmp eax, 0x10
mov dword [esp + 0x240], 0xffffffff
jb 0x40ab81
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00446915
add esp, 4
test bl, bl
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
je 0x40abb8
cmp dword [esi + 0x18], 0x10
jb 0x40aba4
mov eax, dword [edi]
jmp 0x40aba6
mov eax, edi
lea edx, [esp + 0x2c]
push edx
push eax
push esi
mov ecx, ebp
call fcn.004084f0
test al, al
je 0x40ac1f
cmp dword [esi + 0x18], 0x10
jb 0x40abc2
mov eax, dword [edi]
jmp 0x40abc4
mov eax, edi
push 0x104
push eax
lea eax, [esp + 0x138]
push eax
call fcn.00430cf0
add esp, 0xc
lea ecx, [esp + 0x130]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [esp + 0x130]
push edx
call fcn.00411d50
mov eax, dword [esi + 0x18]
add esp, 4
cmp eax, 0x10
jb 0x40ac02
mov edi, dword [edi]
push 0
push edi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40ac23
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x40ac30
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
pop edi
mov ecx, dword [esp + 0x234]
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x228]
pop ebx
call fcn.00430cd9
add esp, 0x234
ret 4
Function at 0x40c500
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4505a7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, 0xf
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], ebx
push edi
mov dword [esp + 0xc], esi
mov byte [esi + 8], bl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov dword [esp + 0x18], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
lea edi, [esi + 0x58]
mov ecx, edi
mov byte [esp + 0x18], 2
call fcn.00407520
mov dword [edi + 4], eax
mov byte [eax + 0x39], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x6c]
mov ecx, edi
mov byte [esp + 0x18], 3
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
call fcn.00407560
mov dword [edi + 4], eax
mov byte [eax + 0x39], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x80], ebx
mov dword [0x46bad8], esi
push ebx
mov byte [esp + 0x1c], 4
mov dword [esi + 0x20], ebx
call fcn.00422bd0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [esi + 0x7c], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40c9c0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
mov eax, dword [0x46aa78]
push ebx
push esi
push edi
mov dword [esp + 0x364], eax
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push str..Data
push eax
call fcn.00430cf0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendA]
add esp, 0xc
push 0x4568c8
lea ecx, [esp + 0x14]
push ecx
call ebx
lea edx, [esp + 0x118]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ca36
push eax
jmp 0x40caaa
cmp byte [esp + 0x144], 0x2e
je 0x40ca96
push 0x104
lea ecx, [esp + 0x25c]
push str..Data
push ecx
call fcn.00430cf0
add esp, 0xc
lea edx, [esp + 0x144]
push edx
lea eax, [esp + 0x25c]
push eax
call ebx
test byte [esp + 0x118], 0x10
jne 0x40ca96
call fcn.00420a40
mov esi, eax
mov edx, dword [esi]
push 0
lea eax, [esp + 0x25c]
push eax
mov ecx, esi
call dword [edx]
push esi
call fcn.0041d890
add esp, 4
lea ecx, [esp + 0x118]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40ca36
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x364]
call fcn.00430cd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40cb70
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x580
mov eax, dword [0x46aa78]
push esi
push edi
mov dword [esp + 0x584], eax
mov esi, ecx
call fcn.0040c9c0
xor eax, eax
mov byte [esp + 0x60], 0
mov ecx, 0x40
lea edi, [esp + 0x61]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x60]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x104
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x170]
push edx
call fcn.00430cf0
mov eax, dword [esi + 0x70]
add esp, 0xc
cmp eax, 0x10
jb 0x40cbdd
mov esi, dword [esi + 0x5c]
jmp 0x40cbe0
add esi, 0x5c
push esi
lea eax, [esp + 0x16c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x104
lea ecx, [esp + 0x16c]
push ecx
lea edx, [esp + 0x278]
push edx
call fcn.00430cf0
add esp, 0xc
lea eax, [esp + 0x270]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [esp + 0x168]
push ecx
push str._s__fl
lea edx, [esp + 0x380]
push 0x208
push edx
call fcn.00430c51
xor eax, eax
add esp, 0x10
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x278]
push eax
push 0
push 0x4000000
push 0
push 0
push 0
lea ecx, [esp + 0x398]
push ecx
push 0
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x6c], 1
mov word [esp + 0x70], 5
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x584]
call fcn.00430cd9
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40dc40
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4506cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
mov eax, dword [0x46aa78]
push ebx
push esi
push edi
mov dword [esp + 0x42c], eax
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x28], 0
mov ecx, 0xff
lea edi, [esp + 0x29]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3e8
lea eax, [esp + 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40dd68
xor ecx, ecx
mov dword [esp + 0x1d], ecx
mov dword [esp + 0x21], ecx
push ecx
push ecx
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x30], 0
mov byte [esp + 0x39], cl
call fcn.00431f07
add esp, 0x14
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x40dd68
mov eax, dword [esp + 0x14]
test eax, eax
ja 0x40dd68
cmp dword [esp + 0x10], 0x6400000
ja 0x40dd68
call fcn.004472e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
push 0x2e
mov dword [esp + 0x440], 0
call fcn.004069d0
add esp, 4
push eax
lea ecx, [esp + 0x10]
call fcn.004028f0
mov esi, dword [esp + 0xc]
mov eax, dword [ebx + 0x1c]
push 0
push esi
push 0x5405
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esi - 0x10]
mov dword [esp + 0x43c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
jmp 0x40dd6a
mov al, 1
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x42c]
call fcn.00430cd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4118e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x46aa78]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push edi
mov dword [esp + 0x110], eax
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov edi, dword [esp + 0x120]
mov byte [edi], 0
jne 0x411960
mov edx, dword [esp + 4]
push esi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov esi, eax
test esi, esi
jne 0x41195d
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x110]
pop edi
call fcn.00430cd9
add esp, 0x110
ret

Function at 0x411980
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4119ca
cmp byte [eax], 0
je 0x4119ca
push esi
push 0
push 0x8000027
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4119b2
xor eax, eax
pop esi
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
xor eax, eax
ret
Function at 0x411ab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x102c
call fcn.00431870
mov eax, dword [0x46aa78]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [esp + 0x1030], eax
push edi
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.00418d80
mov esi, eax
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
mov dword [esp + 0x10], esi
jne 0x411c79
mov edi, dword [ebp + 0xc]
xor edx, edx
mov dword [esp + 0x20], edx
push 0x11000
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
push edi
push esi
mov dword [esp + 0x38], edx
call fcn.004181e0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x411b3a
push esi
call fcn.00418b30
add esp, 4
xor al, al
mov ecx, dword [esp + 0x1034]
call fcn.00430cd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 8
lea eax, [esp + 0x24]
push eax
push edi
push esi
call fcn.004185d0
add esp, 0x10
test eax, eax
jne 0x411b6f
mov ecx, dword [ebp + 0x10]
push eax
push 0x20
push 2
push eax
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x411b93
push ebx
call fcn.00417e50
push esi
call fcn.00418b30
add esp, 8
xor al, al
mov ecx, dword [esp + 0x1034]
call fcn.00430cd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x411c30
mov byte [esp + 0x30], 0
xor eax, eax
mov ecx, 0x3ff
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
push 0
stosw word es:[edi], ax
push 0
push ebx
stosb byte es:[edi], al
call fcn.00418460
push 0x1000
lea edx, [esp + 0x40]
push edx
push ebx
call fcn.00417f90
mov esi, eax
add esp, 0x18
test esi, esi
je 0x411c2c
jmp 0x411be0
mov edi, dword [esp + 0x14]
push 0
lea eax, [esp + 0x20]
push eax
push esi
lea ecx, [esp + 0x3c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411c5f
cmp dword [esp + 0x1c], esi
jne 0x411c5f
push ebx
call fcn.004181b0
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp eax, ecx
jge 0x411c2c
push 0x1000
lea edx, [esp + 0x34]
push edx
push ebx
call fcn.00417f90
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x411be0
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00417e50
push esi
call fcn.00418b30
add esp, 8
mov al, 1
mov ecx, dword [esp + 0x1034]
call fcn.00430cd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00417e50
mov eax, dword [esp + 0x14]
push eax
call fcn.00418b30
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1034]
xor al, al
call fcn.00430cd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411c90
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x46aa78]
mov dword [esp + 0x108], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 8]
push edx
push 0x45675a
push str.SoftwareSohu_RDDownload
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0xff
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x411d2e
cmp dword [esp], 1
jne 0x411d2e
push edi
lea edi, [esp + 0xc]
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x411ce0
mov eax, dword [str.SoDALib.dll]
mov ecx, dword [0x456c24]
mov edx, dword [0x456c28]
mov dword [edi], eax
mov al, byte [0x456c2c]
mov dword [edi + 4], ecx
lea ecx, [esp + 0xc]
mov dword [edi + 8], edx
push ecx
mov byte [edi + 0xc], al
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
dec eax
neg eax
sbb eax, eax
inc eax
pop edi
mov ecx, dword [esp + 0x108]
call fcn.00430cd9
add esp, 0x10c
ret
mov ecx, dword [esp + 0x108]
xor al, al
call fcn.00430cd9
add esp, 0x10c
ret

Function at 0x411d50
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x46aa78]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [esp + 0x120], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x411d87
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push eax
push esi
call ebx
test eax, eax
je 0x411d9c
mov al, 1
mov ecx, dword [esp + 0x11c]
call fcn.00430cd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00430cf0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
test eax, eax
je 0x411de4
lea edx, [esp + 0x10]
push edx
call fcn.00411d50
add esp, 4
test al, al
jne 0x411df9
xor al, al
mov ecx, dword [esp + 0x11c]
call fcn.00430cd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push esi
call ebx
mov ecx, dword [esp + 0x11c]
dec eax
neg eax
sbb eax, eax
inc eax
call fcn.00430cd9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret