joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4140dd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
push 0x4232a4
call esi
xor ebx, ebx
xor eax, eax
push 0x423b94
mov dword [0x423298], ebx
mov word [0x4232a0], ax
mov word [0x42329c], ax
mov dword [0x423294], ebx
mov dword [0x4235ac], ebx
mov dword [0x423bac], ebx
mov dword [0x423bb0], ebx
call esi
push ebx
lea edi, [ebp - 0x210]
call fcn.0041496d
or dword [ebp - 8], 0xffffffff
push ebx
push ebx
push 3
push ebx
push 1
push bind
mov eax, edi
push eax
mov dword [ebp - 4], 0x1fe
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x414185
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41417e
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x414191
test al, 1
je 0x414193
xor eax, eax
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x210], cx
lea eax, [ebp - 0x210]
call fcn.0040b5fc
lea eax, [ebp - 0x210]
call fcn.0040efa4
push 0x4233c0
mov dword [0x4233bc], ebx
mov dword [0x4233d8], ebx
call esi
call fcn.0041030e
push 0x4034b0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x4141e5
mov edi, eax
call fcn.00412d4a
jmp 0x4141e7
xor al, al
cmp al, bl
je 0x4141f2
or dword [0x423354], 1
call fcn.00412b13
pop edi
pop esi
mov al, 1
pop ebx
leave
ret
Function at 0x414595
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5a4
push esi
lea eax, [esp + 0x258]
call fcn.004148eb
lea eax, [esp + 0x70]
push eax
call fcn.00414918
push 2
lea eax, [esp + 0x387]
push eax
push dword [ebp + 8]
mov eax, dword [esp + 0x25a]
push 0x423940
lea ecx, [esp + 0x18]
call fcn.004092a8
lea eax, [esp + 8]
push eax
push 1
push 0x423700
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x414608
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x414608
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4148eb
Capabilities:
Encode data using xor

Disassembly:
push esi
mov edx, 0x350
push edx
push 0x4017f8
push eax
call fcn.00404c87
mov ecx, dword [0x4236dc]
add ecx, dword [0x423b88]
mov esi, edx
sub ecx, eax
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x41490d
pop esi
ret
Function at 0x415184
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0
xor bl, bl
call fcn.004141fe
test al, al
je 0x415270
push 0x8007
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xc], 1
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x41524b
xor edx, edx
cmp dword [ebp - 8], edx
jle 0x415210
mov ecx, dword [eax + edx*4]
test ecx, ecx
je 0x41520a
cmp word [ecx], 0x2d
jne 0x41520a
movzx ecx, word [ecx + 2]
cmp ecx, 0x66
je 0x415206
cmp ecx, 0x69
je 0x415202
cmp ecx, 0x6e
je 0x4151fc
cmp ecx, 0x76
jne 0x41520a
mov byte [ebp - 1], 1
jmp 0x41520a
mov byte [ebp - 0xc], 0
jmp 0x41520a
mov bl, 1
jmp 0x41520a
mov byte [ebp - 0x10], 1
inc edx
cmp edx, dword [ebp - 8]
jl 0x4151d1
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test bl, bl
je 0x415222
call fcn.00414c50
jmp 0x415256
cmp byte [ebp - 1], 0
je 0x41524b
call fcn.0041030e
call fcn.004135ec
test byte [0x4236c8], 4
mov bl, al
je 0x415258
push 0
mov eax, 0x423420
call fcn.00410187
jmp 0x415258
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.00414e3e
mov bl, al
test bl, bl
je 0x415270
test byte [0x4236c8], 2
je 0x415270
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
pop ebx
leave
ret
xor eax, eax
test bl, bl
sete al
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4157c5
Capabilities:
Encode data using xor

Disassembly:
movzx eax, ax
lea eax, [eax*8 + 0x401c10]
xor edx, edx
xor ecx, ecx
cmp dx, word [eax + 2]
jae 0x4157f2
push esi
mov edx, dword [eax + 4]
movzx esi, cx
mov dl, byte [edx + esi]
xor dl, byte [eax]
xor dl, cl
inc ecx
mov byte [esi + edi], dl
cmp cx, word [eax + 2]
jb 0x4157da
pop esi
movzx eax, word [eax + 2]
mov byte [eax + edi], 0
ret

Function at 0x4157fb
Capabilities:
Encode data using xor

Disassembly:
movzx eax, ax
lea eax, [eax*8 + 0x401c10]
xor ecx, ecx
xor edx, edx
cmp cx, word [eax + 2]
jae 0x41583a
push ebx
push edi
mov edi, dword [eax + 4]
movzx ebx, byte [eax]
movzx ecx, dx
movsx di, byte [edi + ecx]
xor di, bx
xor di, dx
mov ebx, 0xff
and di, bx
inc edx
mov word [esi + ecx*2], di
cmp dx, word [eax + 2]
jb 0x415811
pop edi
pop ebx
movzx eax, word [eax + 2]
xor ecx, ecx
mov word [esi + eax*2], cx
ret
Function at 0x415fb2
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
push 0x4c
mov ebx, eax
pop eax
call fcn.00415f5f
push esi
push 0x4f
mov dword [ebp - 0x10], eax
pop eax
call fcn.00415f5f
push esi
push 0x50
mov dword [ebp - 0x14], eax
pop eax
call fcn.00415f5f
push esi
push 0x4d
mov dword [ebp - 0x18], eax
pop eax
call fcn.00415f5f
push esi
push 0x4e
mov dword [ebp - 0x20], eax
pop eax
call fcn.00415f5f
xor ebx, ebx
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
setne byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x416138
mov eax, dword [ebp - 0x18]
push edi
xor edi, edi
cmp eax, ebx
jne 0x41601f
mov dword [ebp - 0x1c], ebx
jmp 0x416027
call fcn.0040535d
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0x14], ebx
je 0x416056
push 0x44
lea esi, [ebp - 0x2c]
pop eax
call fcn.004157fb
push dword [ebp - 0x14]
mov eax, esi
push eax
push 0xc
pop edx
lea edi, [ebp - 0x5c]
call fcn.0040593e
pop ecx
pop ecx
mov eax, edi
call fcn.0040535d
mov edi, eax
mov ecx, dword [ebp - 8]
call fcn.0040579a
cmp ecx, ebx
je 0x4160d3
cmp eax, 1
jle 0x4160d3
mov ecx, eax
and ecx, reloc.WS2_32.dll_accept
jns 0x416076
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x4160d3
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2c], eax
call fcn.00404c1b
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x4160d3
mov ecx, eax
mov eax, dword [ebp - 8]
call fcn.00405488
test al, al
je 0x4160cb
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push ebx
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
cmp eax, 1
jne 0x4160cb
push dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
call fcn.00405007
push dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x28]
call fcn.00404c4b
push 0x4b
lea esi, [ebp - 0xc0]
pop eax
call fcn.004157fb
push 0x54
lea esi, [ebp - 0x44]
pop eax
call fcn.004157fb
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp edx, ebx
mov eax, 0x401624
cmove edx, eax
cmp ecx, ebx
cmove ecx, eax
cmp dword [ebp - 0x1c], ebx
je 0x416108
mov eax, esi
push edx
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [edx]
push eax
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0xc0]
push dword [ebp + 8]
push eax
call fcn.0040579a
mov ebx, eax
mov eax, edx
call fcn.004059cc
add esp, 0x1c
push dword [ebp - 0xc]
call fcn.00404c4b
pop edi
push dword [ebp - 0x10]
call fcn.0040b1dd
push dword [ebp - 0x14]
call fcn.0040b1dd
push dword [ebp - 0x18]
call fcn.0040b1dd
push dword [ebp - 0x20]
call fcn.0040b1dd
push dword [ebp - 8]
call fcn.0040b1dd
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 0xc
Function at 0x416be2
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
push ebx
push esi
push edi
push 8
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
call fcn.00404cfe
push 0x60
lea esi, [ebp - 0x70]
pop eax
call fcn.004157fb
push 0x61
lea esi, [ebp - 0x30]
pop eax
call fcn.004157fb
mov esi, 0x104
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x70]
push eax
lea edi, [ebp - 0x278]
mov eax, reloc.WS2_32.dll_bind
call fcn.00408d73
cmp eax, 0xffffffff
je 0x416c5a
cmp eax, ebx
jbe 0x416c5a
push esi
lea eax, [ebp - 0x480]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.0041699a
cmp dword [ebp - 4], ebx
jne 0x416cc5
push 0x62
lea esi, [ebp - 0x48]
pop eax
call fcn.004157fb
mov eax, esi
mov dword [ebp - 0x18], 0x23
mov dword [ebp - 0x14], 0x1a
mov dword [ebp - 0x10], 0x26
mov dword [ebp - 0xc], eax
xor esi, esi
lea eax, [ebp - 0x278]
push eax
push ebx
push ebx
push dword [ebp + esi*4 - 0x18]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x416cbc
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push 0x4169f4
push 2
push 1
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x278]
call fcn.0040a378
inc esi
cmp esi, 3
jb 0x416c86
cmp dword [ebp - 4], ebx
jbe 0x416cd9
mov edi, dword [ebp - 8]
push 0xcb
push 0x63
pop eax
call fcn.00415845
jmp 0x416ce1
push dword [ebp - 8]
call fcn.00404c4b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x416ce6
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
imul eax, eax, 0x8088405
push 0x20
push 0
push dword [esp + 0xc]
inc eax
push 0
push eax
mov dword [ecx], eax
call fcn.004084bb
push edx
push eax
call fcn.004084ef
ret 4
Function at 0x416d0b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x108
push ebx
push esi
push edi
call fcn.0040579a
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, 0xff
jge 0x416e2b
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x108]
call fcn.00405488
test al, al
je 0x416e2b
sub esi, 4
xor ebx, ebx
mov dword [ebp - 4], 0xcf671
test esi, esi
jle 0x416d77
push 8
lea ecx, [ebp - 4]
lea edi, [ebp + ebx - 0x108]
call fcn.00416ce6
movsx ecx, al
mov al, byte [edi]
rol al, cl
inc ebx
mov byte [edi], al
cmp ebx, esi
jl 0x416d58
mov dword [ebp - 4], 0x3039
mov dword [ebp - 8], 0x100
push esi
lea ecx, [ebp - 4]
call fcn.00416ce6
push esi
lea ecx, [ebp - 4]
movsx edi, al
call fcn.00416ce6
dec dword [ebp - 8]
movsx ecx, al
lea ecx, [ebp + ecx - 0x108]
mov bl, byte [ecx]
lea eax, [ebp + edi - 0x108]
mov dl, byte [eax]
mov byte [eax], bl
mov byte [ecx], dl
jne 0x416d85
xor edi, edi
mov dword [ebp - 4], 0xa564
test esi, esi
jle 0x416dde
push 0x100
lea ecx, [ebp - 4]
call fcn.00416ce6
xor byte [ebp + edi - 0x108], al
inc edi
cmp edi, esi
jl 0x416dc5
xor edi, edi
mov dword [ebp - 4], 0xd431
test esi, esi
jle 0x416e04
push 0x100
lea ecx, [ebp - 4]
call fcn.00416ce6
sub byte [ebp + edi - 0x108], al
inc edi
cmp edi, esi
jl 0x416deb
xor eax, eax
test esi, esi
jle 0x416e1e
movzx ecx, byte [ebp + eax - 0x108]
mov edx, dword [ebp + 8]
mov word [edx + eax*2], cx
inc eax
cmp eax, esi
jl 0x416e0a
mov ecx, dword [ebp + 8]
xor eax, eax
mov word [ecx + esi*2], ax
mov eax, esi
jmp 0x416e2d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x416e76
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
mov eax, WideCharToMultiByte
call fcn.00404c1b
mov esi, eax
xor edi, edi
mov dword [ebp - 0x10], esi
cmp esi, edi
je 0x417012
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffff
push esi
push edi
push edi
push edi
call ebx
cmp eax, edi
jbe 0x41700c
lea ecx, [eax + 1]
mov eax, esi
call fcn.00405afb
test al, al
je 0x41700c
mov eax, 0xc08
call fcn.00404c1b
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x41700c
lea eax, [edi + 0x5fa]
push 0x65
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], esi
lea esi, [ebp - 0x6c]
pop eax
call fcn.004157fb
push 0x66
lea esi, [ebp - 0x2c]
pop eax
call fcn.004157fb
push 0x67
lea esi, [ebp - 0x1c]
pop eax
call fcn.004157fb
push 0x68
lea esi, [ebp - 0x54]
pop eax
call fcn.004157fb
push 0x69
lea esi, [ebp - 0x40]
pop eax
call fcn.004157fb
jmp 0x416f28
mov edi, dword [ebp - 8]
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x416fec
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x416fec
push dword [ebp + 8]
mov esi, 0xff
push esi
push edi
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call ebx
test eax, eax
je 0x416fec
push dword [ebp + 8]
add edi, 0x1fe
push esi
push edi
push 0
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 4]
call ebx
test eax, eax
je 0x416fec
push dword [ebp + 8]
lea eax, [ebp - 0x40]
push esi
lea esi, [edi + 0x1fe]
push esi
push 0
push eax
push dword [ebp - 4]
call ebx
test eax, eax
je 0x416fec
push esi
call fcn.00416d0b
test eax, eax
jle 0x416fec
push 0x56
lea esi, [ebp - 0x8c]
pop eax
call fcn.004157fb
push dword [ebp - 8]
lea eax, [edi + 0x1fe]
push eax
push edi
mov edi, dword [ebp - 0xc]
mov eax, esi
push eax
mov edx, 0x307
call fcn.0040593e
add esp, 0x10
test eax, eax
jle 0x416fec
mov esi, dword [ebp + 0xc]
push edi
mov ecx, esi
call fcn.0040503f
test al, al
je 0x416fec
inc dword [esi + 4]
mov eax, dword [ebp - 4]
push 1
call fcn.00405b37
mov dword [ebp - 4], eax
test eax, eax
jne 0x416f25
push dword [ebp - 8]
call fcn.00404c4b
mov esi, dword [ebp - 0x10]
push esi
call fcn.00404c4b
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x417062
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
push ebx
push esi
push edi
push 8
push 0
lea eax, [ebp - 8]
push eax
call fcn.00404cfe
push 0x6a
lea esi, [ebp - 0xf8]
pop eax
call fcn.004157fb
push 0x6b
lea esi, [ebp - 0x68]
pop eax
call fcn.004157fb
mov ebx, 0x104
push ebx
mov eax, esi
push eax
lea eax, [ebp - 0xf8]
push eax
lea edi, [ebp - 0x300]
mov eax, reloc.WS2_32.dll_accept
call fcn.00408d73
cmp eax, 0xffffffff
je 0x4170eb
test eax, eax
je 0x4170eb
push ebx
lea eax, [ebp - 0x508]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x508]
push eax
call fcn.00416e76
lea eax, [ebp - 0x508]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor edi, edi
cmp dword [ebp - 4], edi
jne 0x417210
push 0x6d
lea esi, [ebp - 0x3c]
pop eax
call fcn.004157fb
push 0x6e
lea esi, [ebp - 0x94]
pop eax
call fcn.004157fb
push 0x6f
lea esi, [ebp - 0x50]
pop eax
call fcn.004157fb
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x10], eax
mov eax, esi
mov dword [ebp - 0x24], 0x24
mov dword [ebp - 0x20], 0x1a
mov dword [ebp - 0x1c], 0x26
mov dword [ebp - 0x18], 0x23
mov dword [ebp - 0xc], eax
mov esi, dword [ebp + edi*4 - 0x24]
lea eax, [ebp - 0x300]
push eax
xor eax, eax
push eax
push eax
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4171a4
cmp esi, 0x24
jne 0x417184
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x300]
push eax
call fcn.00416e34
xor eax, eax
mov word [ebp - 0x2fa], ax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 8]
push eax
push 0x417019
push 2
push 3
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x300]
call fcn.0040a378
inc edi
cmp edi, 4
jb 0x41714a
cmp dword [ebp - 4], 0
jne 0x417214
push 0x6a
lea esi, [ebp - 0xb0]
pop eax
call fcn.004157fb
push 0x6c
lea esi, [ebp - 0x3c]
pop eax
call fcn.004157fb
push ebx
mov eax, esi
push eax
lea eax, [ebp - 0xb0]
push eax
lea edi, [ebp - 0x300]
mov eax, reloc.WS2_32.dll_accept
call fcn.00408d73
cmp eax, 0xffffffff
je 0x417210
test eax, eax
je 0x417210
push ebx
lea eax, [ebp - 0x508]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x508]
push eax
call fcn.00416e34
cmp dword [ebp - 4], 0
jbe 0x417228
mov edi, dword [ebp - 8]
push 0xcb
push 0x70
pop eax
call fcn.00415845
jmp 0x417230
push dword [ebp - 8]
call fcn.00404c4b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417492
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
push ebx
push esi
push edi
push 8
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
call fcn.00404cfe
push 0x77
lea esi, [ebp - 0x74]
pop eax
call fcn.004157fb
push 0x78
lea esi, [ebp - 0x28]
pop eax
call fcn.004157fb
mov esi, 0x104
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x74]
push eax
lea edi, [ebp - 0x280]
mov eax, reloc.WS2_32.dll_accept
call fcn.00408d73
cmp eax, 0xffffffff
je 0x41750a
cmp eax, ebx
jbe 0x41750a
push esi
lea eax, [ebp - 0x488]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x488]
push eax
call fcn.00417235
cmp dword [ebp - 4], ebx
jne 0x417575
push 0x79
lea esi, [ebp - 0x40]
pop eax
call fcn.004157fb
mov eax, esi
mov dword [ebp - 0x18], 0x1a
mov dword [ebp - 0x14], 0x26
mov dword [ebp - 0x10], 0x23
mov dword [ebp - 0xc], eax
xor esi, esi
lea eax, [ebp - 0x280]
push eax
push ebx
push ebx
push dword [ebp + esi*4 - 0x18]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x41756c
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push 0x41726d
push 2
push 1
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x280]
call fcn.0040a378
inc esi
cmp esi, 3
jb 0x417536
cmp dword [ebp - 4], ebx
jbe 0x417589
mov edi, dword [ebp - 8]
push 0xcb
push 0x7a
pop eax
call fcn.00415845
jmp 0x417591
push dword [ebp - 8]
call fcn.00404c4b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x417831
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push esi
push edi
lea esi, [ebp - 0x30]
mov eax, 0x81
call fcn.004157fb
mov eax, esi
push 8
mov dword [ebp - 0xc], eax
xor esi, esi
push esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x18], 0x26
mov dword [ebp - 0x14], 0x1a
mov dword [ebp - 0x10], 0x23
call fcn.00404cfe
xor edi, edi
lea eax, [ebp - 0x238]
push eax
push esi
push esi
push dword [ebp + edi*4 - 0x18]
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4178a9
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push 0x417596
push 2
push 1
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x238]
call fcn.0040a378
inc edi
cmp edi, 3
jb 0x417873
cmp dword [ebp - 4], esi
jbe 0x4178c8
mov edi, dword [ebp - 8]
push 0xcb
mov eax, 0x82
call fcn.00415845
jmp 0x4178d0
push dword [ebp - 8]
call fcn.00404c4b
pop edi
pop esi
leave
ret

Function at 0x4178d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push 0xff
push edi
lea eax, [ebp - 0x100]
push eax
call fcn.00404c87
mov cl, byte [ebp - 0xff]
xor cl, byte [ebp - 0x100]
mov dl, byte [ebp - 0xfe]
xor eax, eax
or cl, 0x50
mov byte [ebp - 2], al
cmp dl, al
je 0x417926
push esi
lea esi, [ebp - 0xfe]
xor dl, cl
movzx edx, dl
mov word [edi + eax*2], dx
inc eax
inc esi
mov dl, byte [esi]
test dl, dl
jne 0x417914
pop esi
xor ecx, ecx
mov word [edi + eax*2], cx
leave
ret
Function at 0x417ba7
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
mov ecx, edi
call fcn.0040579a
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, 0xff
jge 0x417c59
lea ecx, [ebp - 0x100]
mov eax, edi
call fcn.00405488
test al, al
je 0x417c59
xor eax, eax
test esi, esi
jle 0x417bf0
xor byte [ebp + eax - 0x100], 0x5c
inc eax
cmp eax, esi
jl 0x417be3
mov bl, byte [ebp - 0x100]
cmp bl, 0xff
jne 0x417c09
mov bl, byte [ebp - 0xfe]
lea eax, [ebp - 0xfd]
jmp 0x417c0f
lea eax, [ebp - 0xff]
movzx ecx, byte [eax]
lea ecx, [eax + ecx + 1]
movzx eax, bl
lea edx, [eax + ecx]
lea esi, [ebp + esi - 0x100]
cmp edx, esi
ja 0x417c59
cmp eax, dword [ebp + 8]
jl 0x417c59
cmp byte [ebp - 0x100], 0xff
jne 0x417c3b
add ecx, dword [ebp + 8]
sub bl, byte [ebp + 8]
movzx eax, bl
xor edx, edx
test eax, eax
jle 0x417c51
movzx esi, byte [edx + ecx]
mov word [edi + edx*2], si
inc edx
cmp edx, eax
jl 0x417c44
xor ecx, ecx
mov word [edi + eax*2], cx
jmp 0x417c5b
xor eax, eax
pop esi
pop ebx
leave
ret 4
Function at 0x417c61
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push ebx
push esi
push edi
push 8
xor edi, edi
push edi
lea eax, [ebp - 0x1c]
push eax
call fcn.00404cfe
mov eax, 0xc1c
call fcn.00404c1b
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x417e83
add eax, 0x3fc
mov dword [ebp - 0x20], eax
lea esi, [ebp - 0x100]
mov eax, 0x8a
mov dword [ebp - 0x2c], reloc.WS2_32.dll_accept
mov dword [ebp - 0x28], reloc.WS2_32.dll_bind
call fcn.004157fb
lea esi, [ebp - 0x54]
mov eax, 0x8b
call fcn.004157fb
lea esi, [ebp - 0x80]
mov eax, 0x8c
call fcn.004157fb
lea esi, [ebp - 0x40]
mov eax, 0x8d
call fcn.004157fb
lea esi, [ebp - 0x68]
mov eax, 0x8e
call fcn.004157fb
mov dword [ebp - 8], edi
mov ebx, 0xff
lea eax, [ebp - 4]
push eax
push 8
push edi
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp - 8]
push dword [ebp + eax*4 - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417e6e
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x308]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x417e65
mov edi, dword [ebp - 0xc]
inc dword [ebp - 0x14]
push ebx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x308]
push eax
mov eax, dword [ebp - 4]
call fcn.00408d73
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x417e37
test eax, eax
je 0x417e37
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x308]
push eax
mov eax, dword [ebp - 4]
add edi, 0x1fe
call fcn.00408d73
mov esi, eax
cmp esi, 0xffffffff
je 0x417e37
test esi, esi
je 0x417e37
mov edi, dword [ebp - 0x20]
push ebx
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x308]
push eax
mov eax, dword [ebp - 4]
call fcn.00408d73
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x417e37
test eax, eax
je 0x417e37
add esi, dword [ebp - 0x24]
push esi
call fcn.00417ba7
test eax, eax
jle 0x417e37
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x308]
push eax
mov eax, dword [ebp - 4]
call fcn.00408e29
mov edi, eax
cmp edi, 1
jb 0x417ded
cmp edi, 0xffff
jbe 0x417df0
push 0x15
pop edi
push 0x55
lea esi, [ebp - 0xa8]
pop eax
call fcn.004157fb
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
push edi
push eax
push ecx
add eax, 0x1fe
push eax
mov eax, esi
push eax
mov edx, 0x311
lea edi, [ecx + 0x1fe]
call fcn.0040593e
add esp, 0x14
test eax, eax
jle 0x417e37
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040503f
test al, al
je 0x417e37
inc dword [ebp - 0x18]
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x308]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x104
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x417d40
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jb 0x417cf2
push dword [ebp - 0xc]
call fcn.00404c4b
cmp dword [ebp - 0x18], edi
jbe 0x417e9c
mov edi, dword [ebp - 0x1c]
push 0xcb
mov eax, 0x8f
call fcn.00415845
jmp 0x417ea4
push dword [ebp - 0x1c]
call fcn.00404c4b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418152
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push esi
push edi
lea esi, [ebp - 0x38]
mov eax, 0x95
call fcn.004157fb
mov eax, esi
push 8
mov dword [ebp - 0xc], eax
xor esi, esi
push esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x18], 0x26
mov dword [ebp - 0x14], 0x1a
mov dword [ebp - 0x10], 0x23
call fcn.00404cfe
xor edi, edi
lea eax, [ebp - 0x240]
push eax
push esi
push esi
push dword [ebp + edi*4 - 0x18]
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4181ca
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push 0x417ec3
push 2
push 1
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x240]
call fcn.0040a378
inc edi
cmp edi, 3
jb 0x418194
cmp dword [ebp - 4], esi
jbe 0x4181e9
mov edi, dword [ebp - 8]
push 0xcb
mov eax, 0x96
call fcn.00415845
jmp 0x4181f1
push dword [ebp - 8]
call fcn.00404c4b
pop edi
pop esi
leave
ret