joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417aa0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x14], 8
push esi
jb 0x417ab3
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x417ac9
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 1
push esi
call fcn.00473ee4
mov edi, eax
add esp, 8
test edi, edi
je 0x417b3e
mov ecx, dword [ebp - 4]
push edi
push esi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x417b35
lea edx, [ebp - 8]
push edx
lea eax, [ebp + 8]
push eax
push 0x49bd90
push edi
mov dword [ebp + 8], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x417b35
cmp dword [ebp + 8], 0
je 0x417b35
push 0x14
call fcn.0046e1e3
mov esi, eax
add esp, 4
test esi, esi
je 0x417b3e
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
call fcn.00417a00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.0046e15a
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417d90
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
movzx ecx, word [edi + 8]
mov eax, dword [ebp + 8]
mov dx, word [edi + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [ebp - 0x224], eax
mov word [ebp - 0x14], cx
mov word [ebp - 0x12], dx
call esi
movzx ecx, word [edi + 8]
mov word [ebp - 0x10], ax
mov ax, word [edi + 0xc]
mov edx, 0x4e4
mov word [ebp - 0xe], ax
mov word [ebp - 0xc], cx
mov word [ebp - 0xa], dx
call esi
mov word [ebp - 8], ax
mov eax, 0x4e4
mov word [ebp - 6], ax
xor esi, esi
movzx ecx, word [ebp + esi*2 - 0x12]
movzx edx, word [ebp + esi*2 - 0x14]
push ebx
push ecx
push edx
push 0x49bf9c
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
add esi, 2
call fcn.0046f91d
mov eax, dword [edi + 4]
add esp, 0x1c
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x21c]
push ecx
push eax
mov dword [ebp - 0x220], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x417e57
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x417e6f
cmp esi, 8
jb 0x417df3
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret 4
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417e74
mov ecx, dword [ebp - 0x224]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.00402ed0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret 4
Function at 0x4183f0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x103
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x167]
push ebx
push ecx
mov dword [ebp - 0x1d8], eax
mov byte [ebp - 0x168], 0
call fcn.0046e0e0
push esi
push 0x49b6a8
mov ecx, 0x104
lea edi, [ebp - 0x168]
mov dword [ebp - 0x1cc], ebx
mov dword [ebp - 0x1d0], ebx
mov dword [ebp - 0x1c8], 0x67452301
mov dword [ebp - 0x1c4], 0xefcdab89
mov dword [ebp - 0x1c0], 0x98badcfe
mov dword [ebp - 0x1bc], 0x10325476
call fcn.004182c0
mov eax, edi
add esp, 0x14
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418480
sub eax, edx
lea edx, [ebp - 0x168]
push edx
mov ecx, eax
lea esi, [ebp - 0x1d0]
call fcn.00421c20
mov ecx, esi
call fcn.00421d50
mov ecx, esi
call fcn.00421d50
mov ecx, dword [ebp - 0x174]
mov eax, dword [ebp - 0x178]
mov edx, dword [ebp - 0x170]
push 0x40
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x60]
push ebx
push ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
call fcn.0046e0e0
add esp, 0x10
movzx edx, byte [ebp + ebx - 0x1c]
xor eax, eax
push edx
push str._02x
lea ecx, [eax + 8]
lea edi, [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call fcn.004182c0
lea eax, [ebp - 0x60]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418505
sub eax, edx
mov ecx, 0x40
sub ecx, eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1d4], ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x418521
sub eax, esi
mov dword [ebp - 0x1dc], eax
cmp eax, ecx
lea eax, [ebp - 0x1dc]
jl 0x418540
lea eax, [ebp - 0x1d4]
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x60]
push 0x40
push edx
call fcn.004740ed
inc ebx
add esp, 0x10
cmp ebx, 0x10
jl 0x4184de
mov edi, dword [ebp - 0x1d8]
test edi, edi
je 0x41858c
mov esi, dword [ebp + 0xc]
push esi
push 0
push edi
call fcn.0046e0e0
lea eax, [ebp - 0x60]
push eax
push 0x49b6a8
lea ecx, [esi - 1]
call fcn.004182c0
push esi
push edi
call fcn.004740d6
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
Function at 0x4189a0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d18
call fcn.004703d0
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x2d14], eax
cmp eax, ebx
je 0x418b11
push esi
mov dword [ebp - 0x2d10], ebx
mov dword [ebp - 0x2d0c], ebx
push edi
lea esp, [esp]
mov eax, dword [ebp - 0x2d0c]
push eax
push str..PhysicalDrive_d
mov eax, 0x200
lea edi, [ebp - 0x204]
call fcn.00418320
add esp, 8
push ebx
push ebx
push 3
push ebx
push 3
push ebx
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x418ae4
xor eax, eax
push 0x2710
lea edx, [ebp - 0x2cfc]
push ebx
mov dword [ebp - 0x2d08], eax
mov dword [ebp - 0x2d04], eax
push edx
mov dword [ebp - 0x2d18], ebx
mov dword [ebp - 0x2d00], eax
mov dword [ebp - 0x2d08], ebx
mov dword [ebp - 0x2d04], ebx
call fcn.0046e0e0
add esp, 0xc
push ebx
lea eax, [ebp - 0x2d18]
push eax
push 0x2710
lea ecx, [ebp - 0x2cfc]
push ecx
push 0xc
lea edx, [ebp - 0x2d08]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x418ad5
push 0x3e8
lea eax, [ebp - 0x5ec]
push ebx
push eax
call fcn.0046e0e0
mov eax, dword [ebp - 0x2ce4]
add esp, 0xc
lea edi, [ebp - 0x5ec]
lea ecx, [ebp - 0x2cfc]
call fcn.004212c0
mov ecx, edi
push ecx
mov ecx, dword [ebp - 0x2d14]
mov edx, SysReAllocString
mov eax, 0x64
call fcn.00418390
cmp eax, ebx
jne 0x418ad5
mov dword [ebp - 0x2d10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d10], ebx
jne 0x418afa
mov eax, dword [ebp - 0x2d0c]
inc eax
mov dword [ebp - 0x2d0c], eax
cmp eax, 0x10
jl 0x4189e0
mov eax, dword [ebp - 0x2d10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
Function at 0x418dd0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f4
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov dword [ebp - 0x4f4], edi
test edi, edi
je 0x418faa
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.0046e0e0
add esp, 0xc
lea ecx, [ebp - 0x4e0]
push ecx
push 8
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418f77
mov ecx, dword [ebp - 0x4e0]
push esi
xor esi, esi
push esi
push esi
push esi
push esi
lea edx, [ebp - 0x4e4]
push edx
lea eax, [ebp - 0x2d4]
push eax
push esi
push ecx
mov dword [ebp - 0x4e4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x418f69
mov edi, 1
push ebx
mov ecx, dword [ebp - 0x4e0]
lea edx, [ebp - 0x4e8]
push edx
push edi
push 0
lea eax, [ebp - 0x2d4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418f2a
lea edx, [ebp - 0x4f0]
push edx
mov edx, dword [ebp - 0x4e8]
lea eax, [ebp - 0x4dc]
push eax
lea ecx, [ebp - 0x4ec]
push ecx
push 0
push str.ServiceName
push edx
mov dword [ebp - 0x4ec], edi
mov dword [ebp - 0x4f0], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x418f1d
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.0046e0e0
lea ecx, [ebp - 0x4dc]
push ecx
lea ebx, [ebp - 0xcc]
call fcn.00418cc0
add esp, 0x10
test eax, eax
je 0x418f1d
cmp byte [ebp - 0x68], 0
je 0x418f04
lea edx, [ebp - 0x68]
push edx
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x418f1d
lea ecx, [ebp - 0xcc]
push ecx
mov edx, SysReAllocString
mov eax, 0x64
lea ecx, [ebp - 0x68]
call fcn.00418390
mov edx, dword [ebp - 0x4e8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x4e0]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x4e4]
push eax
lea ecx, [ebp - 0x2d4]
push ecx
add esi, edi
push esi
push edx
mov dword [ebp - 0x4e4], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x418e62
mov edi, dword [ebp - 0x4f4]
pop ebx
mov eax, dword [ebp - 0x4e0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
cmp byte [ebp - 0x68], 0
je 0x418faa
lea ecx, [ebp - 0x68]
push ecx
mov edx, SysReAllocString
mov eax, 0x64
mov ecx, edi
call fcn.00418390
xor edx, edx
test eax, eax
setns dl
pop edi
mov eax, edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
Function at 0x4191f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test edi, edi
je 0x419330
cmp esi, 0x20
jb 0x419330
push 0x400
lea eax, [ebp - 0x508]
push 0
push eax
mov dword [ebp - 0x510], 1
mov dword [ebp - 0x50c], 0x400
call fcn.0046e0e0
add esp, 0xc
lea ecx, [ebp - 0x50c]
push ecx
lea edx, [ebp - 0x508]
push edx
lea eax, [ebp - 0x510]
push eax
push 0x49c320
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x419330
lea eax, [ebp - 0x508]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419280
sub eax, edx
cmp eax, 0x40
jne 0x419330
lea ecx, [ebp - 0x508]
lea edx, [eax - 0x20]
push ecx
lea eax, [edx + 0x60]
lea ecx, [ebp - 0x88]
call fcn.00418390
lea edx, [ebp - 0x4e8]
push edx
mov edx, SysReAllocString
mov eax, 0x80
lea ecx, [ebp - 0x108]
call fcn.00418390
push 0x400
lea eax, [ebp - 0x508]
push 0
push eax
call fcn.0046e0e0
add esp, 0xc
lea ecx, [ebp - 0x508]
push 0x400
push ecx
lea ecx, [ebp - 0x88]
call fcn.004183f0
add esp, 8
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x508]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x419330
lea ecx, [ebp - 0x88]
push ecx
mov ecx, edi
call fcn.004181c0
neg eax
sbb eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
Function at 0x41b3f0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0xffffffff
jne 0x41b40b
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 1
lea edx, [esp + 0xc]
push edx
xor ecx, ecx
push ecx
xor eax, eax
push eax
push esi
call edi
test eax, eax
je 0x41b403
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push 0
push 0
push eax
push ecx
push esi
call edi
test eax, eax
je 0x41b403
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x41b463
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0
push 0
push edx
push eax
push esi
call edi
test eax, eax
je 0x41b463
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41b640
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x40], eax
test esi, esi
jne 0x41b663
xor ebx, ebx
jmp 0x41b673
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b668
sub eax, edx
mov ebx, eax
xor ecx, ecx
mov word [ebp - 0x20], cx
push esi
lea ecx, [ebp - 0x20]
mov eax, ebx
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
call fcn.0041fa00
push ebx
push esi
lea ebx, [ebp - 0x20]
call fcn.00413320
mov eax, dword [ebp - 0x20]
mov ebx, 8
add esp, 0xc
cmp dword [ebp - 0xc], ebx
jae 0x41b6af
lea eax, [ebp - 0x20]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp dword [ebp - 0xc], ebx
jb 0x41b6cd
mov edx, dword [ebp - 0x20]
push edx
call fcn.0046d64b
add esp, 4
test edi, edi
jne 0x41b6e6
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x40], 0
je 0x41b827
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046e263
add esp, 4
mov dword [ebp - 0x44], eax
test esi, esi
jne 0x41b716
xor ebx, ebx
jmp 0x41b72b
mov eax, esi
lea edx, [eax + 1]
jmp 0x41b720
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b720
sub eax, edx
mov ebx, eax
xor eax, eax
mov word [ebp - 0x20], ax
push esi
lea ecx, [ebp - 0x20]
mov eax, ebx
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
call fcn.0041fa00
push ebx
push esi
lea ebx, [ebp - 0x20]
call fcn.00413320
mov eax, dword [ebp - 0x20]
mov esi, 8
add esp, 0xc
cmp dword [ebp - 0xc], esi
jae 0x41b766
mov eax, ebx
push edi
mov edi, dword [ebp - 0x44]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 0xc], esi
jb 0x41b783
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0046d64b
add esp, 4
xor ebx, ebx
xor edx, edx
mov eax, edi
mov word [ebp - 0x3c], dx
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41b7a0
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x3c]
call fcn.00402ed0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
cmp dword [ebp - 0x28], esi
jae 0x41b7d1
lea eax, [ebp - 0x3c]
mov ebx, dword [ebp - 0x2c]
push eax
lea esi, [ebp - 0x20]
call fcn.00413080
mov ecx, dword [ebp - 0x40]
add esp, 4
mov eax, esi
push eax
call fcn.00402490
cmp dword [ebp - 0xc], 0x10
jb 0x41b7fd
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0046d64b
add esp, 4
xor eax, eax
cmp dword [ebp - 0x28], 8
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x20], al
jb 0x41b81e
mov edx, dword [ebp - 0x3c]
push edx
call fcn.0046d64b
add esp, 4
push edi
call fcn.0046dff2
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret 4
Function at 0x41b840
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x41b860
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
jmp 0x41b863
mov dword [ebp - 0x44], eax
push ebx
mov ebx, dword [eax + 0x10]
push esi
test edi, edi
jne 0x41b870
xor esi, esi
jmp 0x41b880
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b875
sub eax, edx
mov esi, eax
mov eax, dword [ebp - 0x44]
xor edx, edx
push eax
lea ecx, [ebp - 0x3c]
mov eax, ebx
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], dx
call fcn.0041fa00
mov ecx, dword [ebp - 0x44]
push ebx
push ecx
lea ebx, [ebp - 0x3c]
call fcn.00413320
add esp, 0xc
cmp dword [ebp - 0x28], 8
jb 0x41b8c0
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edx
jmp 0x41b8c6
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x40], eax
xor ecx, ecx
mov word [ebp - 0x20], cx
push edi
lea ecx, [ebp - 0x20]
mov eax, esi
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
call fcn.0041fa00
push esi
push edi
lea ebx, [ebp - 0x20]
call fcn.00413320
mov eax, dword [ebp - 0x20]
mov esi, 8
add esp, 0xc
cmp dword [ebp - 0xc], esi
jae 0x41b901
mov eax, ebx
mov edx, dword [ebp - 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
setne bl
cmp dword [ebp - 0xc], esi
jb 0x41b922
mov eax, dword [ebp - 0x20]
push eax
call fcn.0046d64b
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], cx
cmp dword [ebp - 0x28], esi
jb 0x41b947
mov edx, dword [ebp - 0x3c]
push edx
call fcn.0046d64b
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret 4

Function at 0x41b960
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
test edi, edi
jne 0x41b97a
xor esi, esi
jmp 0x41b98b
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b980
sub eax, edx
mov esi, eax
xor eax, eax
mov word [ebp - 0x20], ax
push edi
lea ecx, [ebp - 0x20]
mov eax, esi
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
call fcn.0041fa00
push esi
push edi
lea ebx, [ebp - 0x20]
call fcn.00413320
mov eax, dword [ebp - 0x20]
mov esi, 8
add esp, 0xc
cmp dword [ebp - 0xc], esi
jae 0x41b9c6
mov eax, ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
setne bl
cmp dword [ebp - 0xc], esi
jb 0x41b9e5
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0046d64b
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret
Function at 0x41fa90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x478
mov eax, dword [0x4a02f0]
xor eax, esp
mov dword [esp + 0x474], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push 0
push 2
mov esi, ecx
mov dword [esp + 0x14], 0
mov byte [esp + 0x13], 1
mov dword [esp + 0x228], 0x49b79c
mov byte [esp + 0x230], 0
mov dword [esp + 0x460], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov word [esp + 0x464], cx
push esi
lea ecx, [esp + 0x468]
mov dword [esp + 0x230], eax
mov dword [esp + 0x22c], 0x49c534
mov dword [esp + 0x47c], 7
mov dword [esp + 0x478], 0
call fcn.00402710
lea esi, [esp + 0x220]
call fcn.0041fc50
test eax, eax
je 0x41fbda
mov eax, dword [eax + 8]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x41fb68
test byte [esp + 0xc], 1
je 0x41fb64
and dword [esp + 0xc], 0xfffffffe
lea ecx, [esp + 0x10]
call fcn.0040ae20
xor al, al
jmp 0x41fbc2
mov edx, dword [ebp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test bl, bl
je 0x41fba1
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41fbb9
test byte [esp + 0xc], 8
je 0x41fbb9
and dword [esp + 0xc], 0xfffffff7
lea ecx, [esp + 0x170]
jmp 0x41fbb4
test byte [esp + 0xc], 0x10
je 0x41fbb9
and dword [esp + 0xc], 0xffffffef
lea ecx, [esp + 0xc0]
call fcn.0040ae20
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
and byte [esp + 0xb], al
lea esi, [esp + 0x220]
call fcn.0041fc50
test eax, eax
jne 0x41fb38
cmp dword [esp + 0x470], 8
mov dword [esp + 0x220], 0x49c534
jb 0x41fbff
mov eax, dword [esp + 0x45c]
push eax
call fcn.0046d64b
add esp, 4
mov edx, dword [esp + 0x224]
xor ecx, ecx
push edx
mov dword [esp + 0x474], 7
mov dword [esp + 0x470], 0
mov word [esp + 0x460], cx
mov dword [esp + 0x224], 0x49b79c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x47c]
mov al, byte [esp + 0xb]
pop esi
pop ebx
xor ecx, esp
call fcn.0046e0cd
mov esp, ebp
pop ebp
ret

Function at 0x41fc50
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32FirstW]
push edi
lea edi, [esi + 0xc]
jmp 0x41fc60
push 0x22c
push 0
push edi
call fcn.0046e0e0
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
jne 0x41fc89
mov eax, dword [esi + 4]
push eax
mov byte [esi + 8], 1
call ebx
jmp 0x41fc93
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
setne al
test al, al
je 0x41fcae
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
test al, al
je 0x41fc60
mov eax, edi
pop edi
pop ebx
ret
pop edi
xor eax, eax
pop ebx
ret
Function at 0x420d90
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
movzx eax, word [edi + 0x14]
lea eax, [eax + edi + 0x18]
lea esi, [eax + 0xc]
mov dword [ebp - 4], eax
cmp ebx, dword [esi]
jae 0x420db8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, word [edi + 6]
xor eax, eax
test ecx, ecx
jne 0x420dd3
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
lea edx, [eax + 1]
cmp edx, ecx
jne 0x420ddf
mov edi, dword [edi + 0x50]
jmp 0x420de2
mov edi, dword [esi + 0x28]
cmp ebx, dword [esi]
jb 0x420dee
cmp dword [ebp + 0xc], edi
jb 0x420e01
mov ebx, dword [ebp + 0xc]
mov eax, edx
add esi, 0x28
cmp eax, ecx
jb 0x420dd0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
lea ecx, [eax + eax*4]
mov eax, dword [edx + ecx*8 + 0x14]
sub eax, dword [edx + ecx*8 + 0xc]
lea ecx, [edx + ecx*8]
add eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424810
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x425300
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
mov eax, dword [0x4a2c3c]
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
cmp eax, 0xffffffff
je 0x4253ab
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x4253ab
mov ecx, 0x40
mov esi, ebx
lea edi, [esp + 0x10]
lea eax, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4a2c3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.0046dff2
add esp, 4
mov edi, 0x40
nop
mov esi, dword [0x56e508]
xor ebx, ebx
xor dl, dl
cmp esi, ebx
jle 0x425394
mov edi, edi
mov eax, dword [esp + esi*4 + 0x10]
cmp eax, ebx
je 0x42538f
mov ecx, dword [esi*4 + 0x56e230]
cmp ecx, ebx
je 0x42538f
push eax
mov dword [esp + esi*4 + 0x14], ebx
call ecx
add esp, 4
mov dl, 1
dec esi
cmp esi, ebx
jg 0x425370
dec edi
cmp edi, ebx
jle 0x42539d
test dl, dl
jne 0x425360
mov edx, dword [0x4a2c3c]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret