joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420450
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc58
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0xc54], eax
push ebx
push ebp
mov ebp, dword [esp + 0xc64]
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0
jne 0x42047e
xor al, al
jmp 0x4205b2
test ebp, ebp
jne 0x420485
lea ebp, [edi + 8]
push ebp
call fcn.004205d0
add esp, 4
test al, al
je 0x420477
lea esi, [esp + 0x18]
call fcn.00420360
cmp byte [esp + 0x248], 0
push 0
mov eax, esi
push eax
je 0x4204d5
add edi, 8
push edi
lea ecx, [esp + 0x364]
push 0
push ecx
call fcn.004515eb
lea edx, [esp + 0x36c]
add esp, 0x14
push edx
call fcn.004205d0
add esp, 4
jmp 0x4205b2
push ebp
lea ecx, [esp + 0x25c]
push 0
push ecx
call fcn.004515eb
add esp, 0x14
lea eax, [esp + 0x250]
call fcn.00420680
test al, al
je 0x420477
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x420477
mov eax, dword [edi + 4]
push eax
call fcn.0042afb0
test eax, eax
jne 0x420477
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, edi
mov edx, dword [edi + 4]
push 0x800
lea ecx, [esp + 0x464]
push ecx
push edx
call fcn.0042a920
mov esi, eax
test esi, esi
jle 0x420584
push 0
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x46c]
push ecx
push ebp
mov dword [esp + 0x28], 0
call ebx
test eax, eax
je 0x420581
cmp dword [esp + 0x14], esi
je 0x420540
or esi, 0xffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi + 4]
push edx
call fcn.0042ab20
test esi, esi
jne 0x4205ab
mov ecx, dword [esp + 0x230]
lea eax, [esp + 0x250]
call fcn.004206c0
xor eax, eax
test esi, esi
sete al
mov ecx, dword [esp + 0xc64]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044ffb2
add esp, 0xc58
ret 4

Function at 0x4205d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x420672
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x420672
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x420605
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete cl
mov al, cl
pop esi
ret
push ebx
push edi
push esi
call fcn.00452526
mov edi, eax
push 0x5c
push edi
call fcn.00451190
mov ecx, esi
add esp, 0xc
lea ebx, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x420620
sub ecx, ebx
cmp byte [ecx + esi - 1], 0x5c
sete bl
test eax, eax
je 0x42066c
push edi
mov byte [eax], dl
call fcn.004205d0
add esp, 4
push edi
test al, al
jne 0x420653
call fcn.004501c5
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
ret
call fcn.004501c5
add esp, 4
test bl, bl
jne 0x42066c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x42064d
pop edi
pop ebx
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x4206c0
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x30
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
jne 0x4206ed
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x30
ret
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x42075b
lea ecx, [esp + 0x18]
push ecx
push esi
shr esi, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x42075b
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp eax, 1
sete bl
test bl, bl
je 0x42075b
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
mov eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp eax, 1
sete bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x30
ret

Function at 0x420770
Capabilities:
Delete file

Disassembly:
sub esp, 0x134
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x130], eax
push 0x105
lea eax, [esp + 0x29]
push 0
push eax
mov byte [esp + 0x30], 0
call fcn.00456da0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x28]
push esi
push ecx
call fcn.00452881
lea edx, [esp + 0x30]
add esp, 0xc
push edx
call fcn.00420990
add esp, 4
cmp eax, 1
jne 0x4207e4
push 0x10000000
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0044ffb2
add esp, 0x134
ret
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], ax
lea edx, [esp + 4]
lea eax, [esp + 0x24]
mov ecx, 0x294
push edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 3
mov word [esp + 0x18], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, dword [esp + 0x130]
neg eax
sbb eax, eax
xor ecx, esp
inc eax
call fcn.0044ffb2
add esp, 0x134
ret
Function at 0x420850
Capabilities:
Get common file path

Disassembly:
sub esp, 0x234
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x230], eax
push 0x105
lea eax, [esp + 0x12d]
push 0
push eax
mov byte [esp + 0x134], 0
call fcn.00456da0
push 0x104
lea ecx, [esp + 0x138]
push esi
push ecx
call fcn.00452881
xor eax, eax
push 0x104
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov word [esp + 0x38], ax
lea ecx, [esp + 0x3d]
lea edx, [esp + 0x144]
mov eax, 0x214
or word [esp + 0x2c], ax
push 0
push ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], 3
mov byte [esp + 0x44], 0
call fcn.00456da0
add esp, 0x24
lea edx, [esp + 0x20]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
lea ecx, [ecx]
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00420d30
add esp, 8
test eax, eax
jne 0x420926
lea edi, [esp + 0x24]
call fcn.00420b90
test eax, eax
jne 0x420900
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, dword [esp + 0x234]
neg eax
sbb eax, eax
pop edi
xor ecx, esp
inc eax
call fcn.0044ffb2
add esp, 0x234
ret
Function at 0x420990
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b920
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x4ada68]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
push 0x140
xor esi, esi
lea ecx, [ebp - 0x15c]
push esi
push ecx
mov dword [ebp - 0x178], eax
call fcn.00456da0
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add esp, 0xc
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x160], esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x420a1e
lea edx, [ebp - 0x160]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x160], 0
je 0x420a3f
push str.Wow64DisableWow64FsRedirection
push str.kernel32
call edi
push eax
call ebx
lea ecx, [ebp - 0x164]
push ecx
call eax
mov eax, dword [ebp - 0x178]
lea edx, [ebp - 0x15c]
push edx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x420a80
xor eax, eax
push 0x4a5120
lea ecx, [ebp - 0x168]
push ecx
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x168], eax
call fcn.004570ab
mov eax, dword [ebp - 0x15c]
mov edx, eax
or edx, 0x10
cmp eax, edx
jne 0x420b03
nop
lea eax, [ebp - 0x15c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x420ada
mov eax, dword [ebp - 0x15c]
mov ecx, eax
or ecx, 0x10
cmp eax, ecx
je 0x420a90
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 2
push 0x4a5120
lea edx, [ebp - 0x174]
push edx
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x174], eax
call fcn.004570ab
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x16c], eax
push 0x4a5120
lea eax, [ebp - 0x16c]
push eax
call fcn.004570ab
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 2
push 0x4a5120
lea ecx, [ebp - 0x170]
push ecx
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x170], eax
call fcn.004570ab
mov dword [ebp - 4], 0xffffffff
mov eax, 0x420b39
ret
Function at 0x420b90
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x108], eax
push 0x104
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.00456da0
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420bd2
sub eax, edx
push esi
mov esi, eax
lea edx, [esi - 2]
cmp edx, 1
ja 0x420c26
movsx eax, byte [esp + 4]
push eax
call fcn.004529b1
add esp, 4
cmp eax, 0x41
jl 0x420c26
movsx ecx, byte [esp + 4]
push ecx
call fcn.004529b1
add esp, 4
cmp eax, 0x5a
jg 0x420c26
cmp byte [esp + 5], 0x3a
jne 0x420c26
cmp esi, 3
jne 0x420c1f
cmp byte [esp + 6], 0x5c
jne 0x420c26
cmp byte [esp + 4], 0
jne 0x420c6a
lea eax, [esp + 4]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420c30
sub eax, edx
add eax, 0xffffffff
js 0x420c4c
mov edi, edi
cmp byte [esp + eax + 4], 0x5c
je 0x420c82
sub eax, 1
jns 0x420c40
test edi, edi
je 0x420c6a
lea eax, [esp + 4]
mov edx, edi
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x420c60
xor eax, eax
pop esi
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0044ffb2
add esp, 0x10c
ret
mov byte [esp + eax + 4], 0
test edi, edi
je 0x420c9f
lea eax, [esp + 4]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x420c95
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420ca6
sub eax, edx
mov esi, eax
lea edx, [esi - 2]
cmp edx, 1
ja 0x420cfd
movsx eax, byte [esp + 4]
push eax
call fcn.004529b1
add esp, 4
cmp eax, 0x41
jl 0x420cfd
movsx ecx, byte [esp + 4]
push ecx
call fcn.004529b1
add esp, 4
cmp eax, 0x5a
jg 0x420cfd
cmp byte [esp + 5], 0x3a
jne 0x420cfd
cmp esi, 3
jne 0x420cf2
cmp byte [esp + 6], 0x5c
jne 0x420cfd
cmp byte [esp + 4], 0
jne 0x420c6a
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x10c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0044ffb2
add esp, 0x10c
ret
Function at 0x420f60
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x48c9ab
mov eax, dword fs:[0]
push eax
mov eax, 0x100c
call fcn.00454f40
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x1008], eax
push ebx
push ebp
push edi
mov eax, dword [0x4ada68]
xor eax, esp
push eax
lea eax, [esp + 0x101c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1030]
xor ebx, ebx
push 0xfff
lea eax, [esp + 0x1d]
push ebx
push eax
mov byte [esp + 0x24], bl
call fcn.00456da0
mov eax, dword [esp + 0x1038]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
mov dword [esp + 0x34], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x18]
mov edi, eax
push edx
lea ecx, [esp + 0x14]
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.004032c0
lea eax, [esp + 0x10]
push eax
mov ecx, ebp
mov dword [esp + 0x1028], ebx
call fcn.00402b40
mov dword [esp + 0x1024], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
cmp edi, ebx
jne 0x421048
test edx, edx
jg 0x421041
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x421058
test edx, edx
jg 0x421056
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x101c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.0044ffb2
add esp, 0x1018
ret 8

Function at 0x421230
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x214]
push esi
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x14], 0
call fcn.00456da0
add esp, 0xc
mov ecx, esi
call fcn.00421360
test al, al
je 0x42133b
push edi
lea edi, [esi + 4]
push 0x5c
push edi
call fcn.00451190
sub eax, esi
sub eax, 4
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.00452a20
push 0x103
lea edx, [esp + 0x129]
push 0
push edx
mov byte [esp + 0x130], 0
call fcn.00456da0
add esp, 0x20
push edi
push 0x104
lea eax, [esp + 0x118]
push eax
push str.LngENU.ini
push ebp
push str.LanguageItems
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esi + 0x108]
lea eax, [esp + 0xc]
mov esi, edx
mov ecx, eax
sub esi, ecx
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x4212e2
mov edi, edx
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4212f0
mov ax, word [0x498ad0]
mov word [edi], ax
lea eax, [esp + 0x110]
mov esi, eax
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421310
sub eax, esi
dec edx
lea ebx, [ebx]
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x421320
mov ecx, eax
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, 1
pop edi
mov ecx, dword [esp + 0x210]
pop esi
pop ebp
xor ecx, esp
call fcn.0044ffb2
add esp, 0x20c
ret 4
Function at 0x421420
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2810
call fcn.00454f40
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x280c], eax
push ebp
mov ebp, dword [esp + 0x2818]
push esi
mov esi, ecx
call fcn.00421360
test al, al
jne 0x421456
mov eax, 0x49a25f
jmp 0x421527
lea eax, [esi + 4]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421460
sub eax, edx
cmp eax, 3
jb 0x42144c
xor eax, eax
mov byte [esp + 8], cl
mov ecx, esi
mov dword [esp + 9], eax
mov dword [esp + 0xd], eax
mov word [esp + 0x11], ax
mov byte [esp + 0x13], al
call fcn.00421540
lea edx, [esp + 8]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x421490
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00421230
test al, al
je 0x42144c
add esi, 0x108
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4214b5
sub eax, edx
cmp eax, 3
jb 0x42144c
push 0x27ff
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x19]
push 0
push ecx
call fcn.00456da0
add esp, 0xc
push esi
push 0x2800
lea edx, [esp + 0x1c]
push edx
push 0x49a25f
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x2800
push 0
push 0x4bea98
call fcn.00456da0
add esp, 0xc
mov dword [0x4b6174], 0x4bea98
xor eax, eax
mov cl, byte [esp + eax + 0x14]
mov byte [eax + 0x4bea98], cl
inc eax
test cl, cl
jne 0x421513
mov eax, 0x4bea98
mov ecx, dword [esp + 0x2814]
pop esi
pop ebp
xor ecx, esp
call fcn.0044ffb2
add esp, 0x2810
ret 4

Function at 0x421540
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, ecx
call fcn.00421360
test al, al
jne 0x42157b
mov eax, 0x49a25f
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0044ffb2
add esp, 0x108
ret
add esi, 4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421583
sub eax, edx
cmp eax, 3
jb 0x421560
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], cl
call fcn.00456da0
add esp, 0xc
push esi
push 0x104
lea ecx, [esp + 0xc]
push ecx
push 0x49a25f
push str.Default
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [0x4b6178], 0x4c1298
xor eax, eax
mov cl, byte [esp + eax + 4]
mov byte [eax + 0x4c1298], cl
inc eax
test cl, cl
jne 0x4215d5
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
mov eax, 0x4c1298
call fcn.0044ffb2
add esp, 0x108
ret
Function at 0x4217a0
Capabilities:
Read .ini file

Disassembly:
cmp dword [esp + 8], 0
push ebp
push esi
je 0x421849
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x421849
push edi
push 0x201
mov esi, 0x200
call fcn.0043052b
add esp, 4
mov edi, eax
mov eax, 0x49a25f
test ebx, ebx
je 0x4217d9
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
push edx
push 0x200
push edi
push eax
mov eax, dword [esp + 0x24]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
call ebp
inc eax
cmp eax, 0x200
jb 0x421841
mov edi, edi
push edi
add esi, 0x200
call fcn.00430536
lea ecx, [esi + 1]
push ecx
call fcn.0043052b
add esp, 8
mov edi, eax
mov eax, 0x49a25f
test ebx, ebx
je 0x421825
mov eax, ebx
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x18]
push ecx
push esi
push edi
push eax
mov eax, dword [esp + 0x24]
push edx
push eax
call ebp
inc eax
cmp eax, esi
jae 0x421800
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
test ebx, ebx
jne 0x421860
push 1
call fcn.0043052b
mov esi, eax
add esp, 4
mov byte [esi], bl
pop esi
pop ebp
ret 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421865
sub eax, edx
inc eax
push eax
call fcn.0043052b
mov esi, eax
mov eax, ebx
add esp, 4
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421880
sub eax, edx
push ebx
inc eax
push eax
push esi
call fcn.00450826
add esp, 0xc
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x421cb0
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4a5768
push 0x457150
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4ada68]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
mov ebx, 1
mov dword [ebp - 0x20], ebx
mov ecx, dword [edi]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x24]
push edx
push 0x20019
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x421d49
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x49bb58
push esi
push 2
push 0x6a9
push str..YWAssistant.c
push str.B_GetProxy
call fcn.00422520
add esp, 0x1c
jmp 0x421deb
mov eax, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
push str.ProxyEnable
mov eax, dword [ebp - 0x24]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call esi
mov dword [ebp - 0x1c], eax
cmp eax, 2
jne 0x421d82
xor esi, esi
mov dword [ebp - 0x1c], esi
jmp 0x421deb
cmp dword [ebp - 0x2c], 0
je 0x421d7b
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x20], ebx
mov ecx, dword [edi]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
push ecx
push 0
push str.ProxyServer
mov edx, dword [ebp - 0x24]
push edx
call esi
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, 2
je 0x421d7b
test esi, esi
je 0x421de5
push str.ProxyServer
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x49bb80
push esi
push 2
push 0x6c6
push str..YWAssistant.c
push str.B_GetProxy
call fcn.00422520
add esp, 0x20
jmp 0x421deb
mov eax, dword [ebp - 0x28]
inc eax
mov dword [edi], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.00421e0e
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421e30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4a5748
push 0x457150
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4ada68]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x1c]
push eax
push 0x20006
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, edi
je 0x421eb7
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x49bb58
push esi
push 2
push 0x6e7
push str..YWAssistant.c
push str.B_SetProxy
call fcn.00422520
add esp, 0x1c
jmp 0x421ed4
push 4
lea ecx, [ebp - 0x24]
push ecx
push 4
push edi
push str.ProxyEnable
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.00421ef9
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421f10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4a59b0
push 0x457150
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x4ada68]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x164], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x158], eax
or esi, 0xffffffff
mov dword [ebp - 0x160], esi
xor ebx, ebx
mov dword [ebp - 0x168], ebx
push 0x124
push ebx
lea ecx, [ebp - 0x150]
push ecx
call fcn.00456da0
add esp, 0xc
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x154], 0x128
mov dword [ebp - 4], ebx
mov dword [edi], ebx
push ebx
call fcn.004500fb
add esp, 4
mov dword [edi], eax
test eax, eax
jne 0x421ff5
mov ebx, 8
mov dword [ebp - 0x15c], ebx
push 0x49bbf8
push ebx
push 2
push 0x817
push str..YWAssistant.c
push str.W_GetRunningProcesses
call fcn.00422520
add esp, 0x18
mov dword [ebp - 4], 0xfffffffe
call fcn.004220c9
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0044ffb2
mov esp, ebp
pop ebp
ret
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x160], esi
cmp esi, 0xffffffff
jne 0x422020
push 0x49bd04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 0x81e
jmp 0x421fb9
lea edx, [ebp - 0x154]
push edx
push esi
call sub.KERNEL32.dll_Process32First
lea ecx, [ecx]
test eax, eax
je 0x421fcb
mov byte [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x27], eax
mov word [ebp - 0x23], ax
mov byte [ebp - 0x21], al
mov eax, dword [ebp - 0x14c]
push eax
push 0x49a1f8
lea ecx, [ebp - 0x28]
push ecx
call fcn.0045101f
add esp, 0xc
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x158]
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.004218a0
add esp, 0xc
mov ebx, eax
mov dword [ebp - 0x15c], ebx
test ebx, ebx
jne 0x421fcb
push 0x128
push eax
lea ecx, [ebp - 0x154]
push ecx
call fcn.00456da0
add esp, 0xc
mov dword [ebp - 0x154], 0x128
lea edx, [ebp - 0x154]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
jmp 0x422030