joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4122b0
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x437026
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.0040de30
mov eax, dword [esp + 0x43c]
xor ebx, ebx
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x430], ebx
je 0x412384
lea ecx, [esp + 0x48]
call fcn.00423230
lea ecx, [esp + 0x294]
mov byte [esp + 0x430], 1
call fcn.00421eb0
and eax, 1
xor ecx, ecx
or eax, ecx
je 0x412374
lea ecx, [esp + 0x294]
call fcn.00421eb0
and eax, 0x80
xor ecx, ecx
or eax, ecx
jne 0x412374
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
lea ecx, [esp + 0x54]
call fcn.00423560
test eax, eax
je 0x412374
mov ecx, dword [esp + 0x438]
lea edx, [esp + 0x1c]
push ecx
push str.Global_s
push edx
lea edi, [esp + 0x1c]
call fcn.0040f2c0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ebx
call fcn.0040eef0
mov dword [esp + 0x438], eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x430], bl
call fcn.004232c0
mov eax, dword [esp + 0x438]
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x4123b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4123b0
mov ebp, 1
jmp 0x4123b2
xor ebp, ebp
cmp dword [esp + 0x440], 1
jne 0x4123cd
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4123cd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], ebx
cmp edi, ebx
je 0x4123dd
mov ecx, dword [edi + 4]
push ecx
call fcn.0042b273
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x430], 0xffffffff
call fcn.0040ded0
mov ecx, dword [esp + 0x428]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x424
ret 0xc

Function at 0x412640
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call edi
mov ebx, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
push ebx
cmp esi, 0xffffffff
jne 0x41266f
call edi
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
call edi
mov eax, esi
pop edi
not al
and eax, 0xff
pop esi
shr eax, 4
and eax, 1
pop ebx
ret 4

Function at 0x412690
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8001
call edi
mov ebx, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
push ebx
cmp esi, 0xffffffff
jne 0x4126bf
call edi
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
call edi
mov eax, esi
pop edi
and eax, 0xff
pop esi
shr eax, 4
and eax, 1
pop ebx
ret 4
Function at 0x412c60
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4370d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.0040de30
mov eax, dword [esp + 0x50]
xor edi, edi
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c], edi
mov ebp, 1
call fcn.0040e450
push 0x4461f0
lea ecx, [esp + 0x18]
call fcn.0040ecb0
cmp eax, ebp
jne 0x412cba
mov dword [esp + 0x10], 2
jmp 0x412cd3
push 2
push 0x447204
lea ecx, [esp + 0x1c]
call fcn.0040e530
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x50]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040e450
inc ebx
lea ecx, [esp + 0x14]
push ebx
push 0x5c
call fcn.0040ebf0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x412d0b
push ebx
lea ecx, [esp + 0x18]
call fcn.0040e700
jmp 0x412d31
cmp dword [esp + 0x54], 1
je 0x412dd9
cmp ebp, 1
jne 0x412d31
lea ecx, [esp + 0x14]
call fcn.0040ef30
mov edx, dword [esp + 0x10]
inc edx
cmp eax, edx
je 0x412dd4
push 0
lea ecx, [esp + 0x18]
call fcn.0040eef0
push 0
push 0
lea ecx, [esp + 0x1c]
call fcn.0040eef0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x412d7d
call esi
cmp eax, 0xb7
je 0x412d7d
push 0
lea ecx, [esp + 0x18]
call fcn.0040eef0
call esi
push 0
call esi
push eax
mov ecx, 0x44ef70
call fcn.00406860
xor edi, edi
jmp 0x412dc8
push 0
lea ecx, [esp + 0x18]
call fcn.0040eef0
call esi
push 0
call esi
push eax
mov ecx, 0x44ef70
call fcn.00406860
push 0
lea ecx, [esp + 0x18]
call fcn.0040eef0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 2
lea ecx, [esp + 0x14]
or al, 0x20
push eax
push 0
call fcn.0040eef0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, 1
cmp ebx, 0xffffffff
je 0x412dd9
xor ebp, ebp
jmp 0x412cdd
mov edi, 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], 0xffffffff
call fcn.0040ded0
mov ecx, dword [esp + 0x40]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 8

Function at 0x412e10
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
pop esi
neg eax
ret 4
Function at 0x412f00
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebp, ecx
lea eax, [esp + 0x14]
push 0
push eax
mov ecx, dword [ebp]
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x412f38
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, esi
pop edi
pop esi
pop ebp
sete al
pop ebx
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5aa
je 0x412f4e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8
test esi, esi
jbe 0x412f8c
cmp esi, 0x100000
mov edi, esi
jb 0x412f61
mov edi, 0x100000
mov eax, dword [ebp]
lea edx, [esp + 0x14]
push 0
push edx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412f45
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x412f45
sub esi, eax
add ebx, 0x100000
test esi, esi
ja 0x412f52
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8

Function at 0x4130e0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x1c], edi
jne 0x41310c
push 0x1000
call fcn.0042b0be
add esp, 4
cmp eax, edi
mov dword [esi + 0x1c], eax
jne 0x41310c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
mov ebp, dword [esp + 0x18]
push 0x44f820
mov ecx, ebp
call fcn.0040e430
mov dword [esp + 0x18], edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x41314d
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi]
lea eax, [esp + 0x10]
push 0
push eax
push 0x1000
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413102
mov eax, dword [esp + 0x10]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x24]
test eax, eax
je 0x41321a
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x41316d
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
movzx cx, byte [ecx + edx]
jmp 0x413177
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov cx, word [eax + ecx]
cmp cx, word [esp + 0x20]
jne 0x413188
xor edx, edx
cmp ebx, 1
setne dl
mov ebx, edx
cmp cx, 0xa
je 0x413193
cmp edi, 1
je 0x41320d
mov eax, ecx
xor edi, edi
and eax, 0xffff
je 0x4131df
cmp eax, 0xa
je 0x4131c8
cmp eax, 0xd
je 0x4131b2
push ecx
mov ecx, ebp
call fcn.0040e2b0
jmp 0x4131df
cmp ebx, 1
jne 0x4131c1
push ecx
mov ecx, ebp
call fcn.0040e2b0
jmp 0x4131df
mov edi, 1
jmp 0x4131df
cmp ebx, 1
jne 0x4131d7
push ecx
mov ecx, ebp
call fcn.0040e2b0
jmp 0x4131df
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x1c]
test eax, eax
mov eax, dword [esi + 0x20]
jne 0x4131ed
inc eax
jmp 0x4131f0
add eax, 2
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x20], eax
cmp eax, ecx
jb 0x413201
mov dword [esi + 0x20], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x413122
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 0xc
mov ecx, ebp
call fcn.0040ef30
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
pop ecx
ret 0xc
Function at 0x413250
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, ecx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edx, dword [ebp]
lea ecx, [esp + 0x20]
push eax
push ecx
push esi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
mov eax, dword [esp + 0x18]
jne 0x4132a2
test eax, eax
je 0x413293
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword [eax], ecx
pop ebp
mov eax, 1
pop ebx
ret 0x10
cmp dword [esp + 0x20], esi
je 0x413303
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
test eax, eax
je 0x4132af
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5aa
je 0x4132c5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
test esi, esi
jbe 0x413303
cmp esi, 0x100000
mov edi, esi
jb 0x4132d8
mov edi, 0x100000
mov eax, dword [ebp]
lea edx, [esp + 0x20]
push 0
push edx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4132bc
mov eax, dword [esp + 0x20]
cmp eax, edi
jne 0x4132bc
sub esi, eax
add ebx, 0x100000
test esi, esi
ja 0x4132c9
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x10

Function at 0x413310
Capabilities:
Get file size

Disassembly:
mov ecx, dword [ecx]
sub esp, 8
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 4]
add esp, 8
ret

Function at 0x4134a0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x254
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebp
push esi
push edi
push 1
call ebx
mov ecx, dword [esp + 0x268]
mov ebp, eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], ebp
push eax
push ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x413502
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4134eb
cmp eax, 2
je 0x4134eb
cmp eax, 0x12
jne 0x4134f0
mov esi, 1
push ebp
call ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x254
ret 0xc
mov ebp, dword [esp + 0x270]
mov ebx, dword [esp + 0x26c]
test ebx, ebx
je 0x413527
lea edx, [esp + 0x14]
push ebp
push edx
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x41353c
jmp 0x41352c
mov esi, 1
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x413510
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x254
ret 0xc
Function at 0x413560
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x437126
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2b4
push ebx
push ebp
mov dword [esp + 0x10], ecx
push esi
push edi
lea ecx, [esp + 0x48]
call fcn.0040de30
xor esi, esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2cc], esi
call fcn.0040de30
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
mov byte [esp + 0x2d0], 1
call ebx
mov edi, dword [esp + 0x2d4]
mov ebp, eax
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebp
call fcn.0040e450
push 0x5c
lea ecx, [esp + 0x20]
call fcn.0040f520
mov eax, dword [esp + 0x2d8]
lea ecx, [esp + 0x1c]
push eax
call fcn.0040e3b0
lea ecx, [esp + 0x74]
push ecx
push esi
lea ecx, [esp + 0x24]
call fcn.0040eef0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x41362f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x413617
cmp eax, 2
je 0x413617
cmp eax, 0x12
jne 0x41361c
mov esi, 1
push 0
lea ecx, [esp + 0x20]
call fcn.0040eef0
push ebp
call ebx
jmp 0x413727
mov ebp, dword [esp + 0x2e0]
mov ebx, dword [esp + 0x2dc]
lea edx, [esp + 0x74]
push ebp
push edx
push edi
call ebx
add esp, 0xc
cmp eax, 1
je 0x41370f
cmp eax, 2
mov esi, 1
je 0x4136e6
test byte [esp + 0x74], 0x10
je 0x4136e6
cmp word [esp + 0xa0], 0x2e
jne 0x413690
mov ax, word [esp + 0xa2]
test ax, ax
je 0x4136e6
cmp ax, 0x2e
jne 0x413690
cmp word [esp + 0xa4], 0
je 0x4136e6
push edi
lea ecx, [esp + 0x4c]
call fcn.0040e450
push 0x5c
lea ecx, [esp + 0x4c]
call fcn.0040f520
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x48]
push eax
call fcn.0040e3b0
push 0x5c
lea ecx, [esp + 0x4c]
call fcn.0040f520
mov ecx, dword [esp + 0x2d8]
push ebp
push ebx
push ecx
push 0
lea ecx, [esp + 0x58]
call fcn.0040eef0
mov ecx, dword [esp + 0x24]
push eax
call fcn.00413560
mov esi, eax
test esi, esi
je 0x413711
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x74]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x413711
lea ecx, [esp + 0x74]
push ebp
push ecx
push edi
call ebx
add esp, 0xc
cmp eax, 1
jne 0x413652
xor esi, esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2cc], 0
call fcn.0040ded0
lea ecx, [esp + 0x48]
mov dword [esp + 0x2cc], 0xffffffff
call fcn.0040ded0
mov ecx, dword [esp + 0x2c4]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c0
ret 0x10

Function at 0x413a30
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [ecx]
lea eax, [esp]
lea edx, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push edx
push 0
push 0
push eax
push ecx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413a6c
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov dword [edx], eax
mov eax, 1
pop ecx
ret 8
xor eax, eax
pop ecx
ret 8
Function at 0x413b10
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x413b45
mov eax, dword [esp + 0x14]
test eax, eax
je 0x413b3f
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
xor eax, eax
pop esi
ret 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x413b54
mov word [esi + eax*2 - 2], 0
mov eax, 1
pop esi
ret 0x10

Function at 0x413b60
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
push eax
mov eax, dword [esp + 8]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
inc eax
ret 0xc

Function at 0x413bf0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [ecx]
lea edx, [esp + 8]
push 4
mov dword [esp + 0xc], eax
mov eax, dword [esp + 8]
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
ret 8

Function at 0x413c20
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 8
Function at 0x4160d0
Capabilities:
Encode data using base64

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
lea eax, [ebx*4 + 8]
push eax
call fcn.0042b0be
mov esi, dword [esp + 0x18]
add esp, 4
test eax, eax
mov dword [esi], eax
jne 0x4160f5
pop esi
pop ebx
ret 0xc
push ebp
push edi
xor ecx, ecx
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x1c], ebp
test ebx, ebx
jbe 0x4161ab
mov edx, dword [esp + 0x18]
mov ebx, 4
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x14]
xor eax, eax
mov al, byte [edx + ebp]
xor edx, edx
or ecx, eax
mov eax, ebp
mov ebp, 3
div ebp
cmp edx, 2
jne 0x416190
mov edx, dword [esi]
mov eax, ecx
and eax, 0x3f
add edi, 4
shr ecx, 6
mov ax, word [eax*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ebx + edx + 2], ax
mov eax, dword [esi]
mov edx, ecx
add ebx, 8
and edx, 0x3f
shr ecx, 6
mov dx, word [edx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ebx + eax - 8], dx
mov edx, dword [esi]
mov eax, ecx
and eax, 0x3f
shr ecx, 6
mov ax, word [eax*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and ecx, 0x3f
mov word [ebx + edx - 0xa], ax
mov edx, dword [esi]
mov ax, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
xor ecx, ecx
mov word [ebx + edx - 0xc], ax
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
shl ecx, 8
inc ebp
dec eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], eax
jne 0x416116
mov eax, ebp
xor edx, edx
mov ebx, 3
div ebx
cmp edx, 1
jne 0x4161fc
shr ecx, 8
mov eax, dword [esi]
mov edx, ecx
and edx, ebx
shl edx, 5
shr ecx, 2
mov dx, word [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and ecx, 0x3f
mov word [eax + edi*2 + 2], dx
mov eax, dword [esi]
mov cx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax + edi*2], cx
mov edx, dword [esi]
mov eax, 0x3d
mov word [edx + edi*2 + 4], ax
mov ecx, dword [esi]
mov word [ecx + edi*2 + 6], ax
jmp 0x41624c
cmp edx, 2
jne 0x41624f
mov eax, dword [esi]
shr ecx, 8
mov edx, ecx
and edx, 0xf
shr ecx, 4
mov dx, word [edx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [eax + edi*2 + 4], dx
mov edx, dword [esi]
mov eax, ecx
and eax, 0x3f
shr ecx, 6
mov ax, word [eax*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and ecx, 0x3f
mov word [edx + edi*2 + 2], ax
mov edx, dword [esi]
mov ax, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [edx + edi*2], ax
mov ecx, dword [esi]
mov word [ecx + edi*2 + 6], 0x3d
add edi, 4
mov edx, dword [esi]
mov eax, 1
mov word [edx + edi*2], 0
pop edi
pop ebp
pop esi
pop ebx
ret 0xc
Function at 0x416b78
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x4373f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
call fcn.0040de30
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [esp + 0x3c], 0
call edi
call edi
push eax
lea ecx, [esp + 0xc]
call fcn.0040f7c0
push eax
lea ecx, [esp + 0xc]
call fcn.0040e450
lea ecx, [esp + 8]
call fcn.0040e690
lea ecx, [esp + 8]
call fcn.0040e630
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.00416a80
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x3c], 0xffffffff
call fcn.0040ded0
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x4182d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b018
push 0x42beb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edx, edx
mov dword [ebp - 4], edx
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x54], 0x3c
cmp dword [ebp + 0x18], 1
mov eax, str.runas
je 0x41831c
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x50], edx
lea edx, [ebp - 0x54]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
mov dword [ebp - 4], 0xffffffff
je 0x418377
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x418390
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4378a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x20]
call fcn.00420d80
xor ebx, ebx
lea ecx, [esp + 0x74]
mov dword [esp + 0xec], ebx
call fcn.0040de30
mov eax, dword [esp + 0x114]
mov esi, dword [esp + 0xf4]
mov ebp, 1
mov byte [esp + 0xec], 1
cmp eax, ebp
je 0x4184df
cmp esi, ebx
je 0x4184df
push str..exe
push esi
call fcn.0042abbc
add esp, 8
test eax, eax
jne 0x4184df
mov edx, dword [esp + 0xf8]
mov ecx, 0x11
lea edi, [esp + 0xa0]
push edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], eax
mov cx, word [esp + 0x104]
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x20], eax
push str.__s___s
mov dword [esp + 0x28], eax
lea eax, [esp + 0x80]
push eax
mov dword [esp + 0xb0], 0x44
mov word [esp + 0xe0], cx
mov dword [esp + 0xdc], ebp
call fcn.0040f2c0
mov eax, dword [esp + 0x10c]
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0xa0]
push ecx
push edx
push eax
push ebx
push 0x200
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x98]
call fcn.0040eef0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4184cb
lea ecx, [esp + 0x74]
mov byte [esp + 0xec], bl
call fcn.0040ded0
lea ecx, [esp + 0x20]
mov dword [esp + 0xec], 0xffffffff
call fcn.00420db0
xor eax, eax
jmp 0x4185da
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
jmp 0x418561
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x110]
mov dword [esp + 0x38], 0x3c
cmp eax, ebp
mov dword [esp + 0x44], str.runas
je 0x41850f
mov dword [esp + 0x44], str.open
mov edx, dword [esp + 0xf8]
mov eax, dword [esp + 0x100]
mov ecx, dword [esp + 0xfc]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x104]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x38]
or edx, 0x40
push eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x40], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4184a0
mov esi, dword [esp + 0x70]
cmp esi, ebx
je 0x4184a0
push ebx
push esi
lea ecx, [esp + 0x28]
call fcn.00420f00
mov eax, dword [esp + 0x10c]
push ebx
cmp eax, ebp
jne 0x418585
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call fcn.00421040
jmp 0x418591
push ebx
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call fcn.00420f80
lea ecx, [esp + 0x20]
call fcn.00420f20
mov eax, dword [esp + 0x108]
cmp eax, ebx
je 0x4185ad
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x74]
mov byte [esp + 0xec], bl
call fcn.0040ded0
lea ecx, [esp + 0x20]
mov dword [esp + 0xec], 0xffffffff
call fcn.00420db0
mov eax, ebp
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xe0
ret 0x24
Function at 0x418730
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 2
mov esi, ecx
push eax
xor edi, edi
call fcn.00413f30
test eax, eax
je 0x41875e
mov ecx, dword [esi]
push esi
push 0x4187b0
push ecx
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
test eax, eax
mov eax, 1
jne 0x418760
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x41b480
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x437e28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0040de30
mov eax, dword [esi]
mov dword [esp + 0x38], 0
test eax, eax
jne 0x41b4d5
lea ecx, [esp + 4]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040ded0
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
push eax
mov eax, dword [esi + 0xc]
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x64697669
lea ecx, [esp + 8]
push str._C_SubClassing_Property__08X
push ecx
call fcn.0040f2c0
add esp, 0xc
lea ecx, [esp + 4]
push 0
call fcn.0040eef0
mov edx, dword [esi + 0xc]
push eax
push edx
call dword [sym.imp.USER32.dll_RemovePropW]
lea ecx, [esp + 4]
mov dword [esi], 0
mov dword [esp + 0x38], 0xffffffff
call fcn.0040ded0
mov ecx, dword [esp + 0x30]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret