joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cb60
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00482db0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x60]
add esp, 0xc
mov dword [esp + 4], 0x3c
mov dword [esp + 8], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
test eax, eax
jne 0x41cbcd
mov eax, dword [0x4d88a4]
test eax, eax
je 0x41cbe6
mov dword [esp + 8], 0x200000
jmp 0x41cbe2
push 0
push eax
call dword [sym.imp.USER32.dll_MonitorFromWindow]
test eax, eax
je 0x41cbe6
or dword [esp + 8], 0x200000
mov dword [esp + 0x38], eax
push edi
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
xor ecx, ecx
test eax, eax
setge cl
lea edx, [esp + 8]
push edx
mov edi, ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x41cc18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x41cc18
lea esi, [eax + 0x1f]
test edi, edi
pop edi
je 0x41cc23
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop esi
add esp, 0x3c
ret

Function at 0x41d930
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x1c
push esi
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x41d9b6
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 4]
push eax
push esi
mov dword [esp + 0xc], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x41d9af
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [sym.imp.USER32.dll_EnumThreadWindows]
mov ebx, eax
cmp dword [esp + 0x18], ebx
jne 0x41d99e
mov ecx, dword [0x4d7e6c]
mov edx, dword [esp + 0x14]
push ecx
push 0x41b430
push edx
call edi
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x41d985
pop edi
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x1c
ret
Function at 0x41d9d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
mov eax, dword [0x4d7c50]
push esi
xor esi, esi
mov dword [esp + 4], esi
test eax, eax
je 0x41d9e6
mov eax, dword [eax + 0x20]
jmp 0x41d9e8
xor eax, eax
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41da6a
push ebp
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x41da5c
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax]
lea eax, [edi + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x41da5b
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x41da5a
push edi
push ebp
push ebx
call fcn.00484120
add esp, 0xc
xor ecx, ecx
push esi
mov word [edi + ebx], cx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x41da5a
mov dword [esp + 0x10], 1
pop ebx
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 8]
pop ebp
pop esi
pop ecx
ret
mov eax, esi
pop esi
pop ecx
ret

Function at 0x41db00
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
xor esi, esi
mov dword [esp + 0xc], esi
mov dword [esp + 8], esi
call ebp
cmp dword [esp + 0x1c], esi
mov dword [esp + 0x10], eax
jle 0x41dbc7
push ebx
mov ebx, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x20]
nop
cmp ebx, 0xffffffff
je 0x41db6e
call ebp
sub eax, dword [esp + 0x18]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
mov eax, ebx
sub eax, ecx
cmp eax, 0xffffffff
je 0x41db4f
test eax, eax
jl 0x41db73
mov edx, dword [edi + esi*4]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x41db85
test eax, eax
jne 0x41dbde
inc esi
cmp esi, dword [esp + 0x24]
jl 0x41db30
jmp 0x41dbc5
or eax, 0xffffffff
jmp 0x41db4f
mov dword [esp + 0x10], 0xfffffffe
mov dword [esp + 0x14], 0x79
jmp 0x41db98
inc esi
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
test esi, esi
je 0x41dbc5
xor esi, esi
lea ebx, [ebx]
mov eax, dword [edi + esi*4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41dbbe
mov ecx, dword [edi + esi*4]
push 0xffffffffffffffff
push ecx
call fcn.0041c050
add esp, 8
inc esi
cmp esi, dword [esp + 0x24]
jl 0x41dba0
pop edi
pop ebx
mov eax, dword [esp + 0x24]
pop esi
pop ebp
test eax, eax
je 0x41dbd7
mov edx, dword [esp + 4]
mov dword [eax], edx
mov eax, dword [esp]
add esp, 0xc
ret
mov dword [esp + 0x10], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
jmp 0x41db98
Function at 0x41dc20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
movzx ebx, word [esp + 0xc]
push ebp
xor ebp, ebp
push esi
mov dword [esp + 0xc], ebp
call fcn.00469e8e
mov esi, dword [eax + 0xc]
cmp esi, ebp
je 0x41dc93
mov eax, dword [esp + 0x18]
cmp eax, ebp
jne 0x41dc49
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
push edi
push eax
push ebx
push 5
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
jne 0x41dc67
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41dc92
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test ebx, ebx
je 0x41dc92
test ebp, ebp
je 0x41dc92
mov dword [esp + 0x10], ebx
pop edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41dc9d
mov dword [eax], ebp
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x41f210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
push edi
xor ebp, ebp
push 0xffffffffffffffff
push ebp
mov ecx, ebx
mov dword [esp + 0x18], ebp
call fcn.0041d510
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
mov eax, dword [esp + 0x28]
cmp eax, ebp
jne 0x41f242
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
movzx edi, word [esp + 0x20]
push eax
push edi
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
cmp eax, ebp
jne 0x41f268
push 0xe
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebp
je 0x41f34e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebp
je 0x41f34e
movzx ecx, word [eax + 4]
mov edx, 1
mov dword [esp + 0x20], ecx
cmp word [eax + 2], dx
jne 0x41f34e
cmp ecx, ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], ebp
jle 0x41f34e
lea ebp, [eax + 6]
lea esp, [esp]
mov al, byte [ebp]
movzx edi, al
test al, al
jne 0x41f2bf
mov edi, 0x100
mov al, byte [ebp + 1]
mov dword [esp + 0x14], edi
movzx esi, al
test al, al
jne 0x41f2d2
mov esi, 0x100
mov ecx, dword [ebx + 8]
xor eax, eax
mov dword [esp + 0x18], esi
test ecx, ecx
jle 0x41f2fd
nop
test eax, eax
jl 0x41f35a
cmp eax, ecx
jge 0x41f35a
mov edx, dword [ebx + 4]
cmp dword [edx + eax*8], edi
lea edx, [edx + eax*8]
jne 0x41f2f8
cmp dword [edx + 4], esi
je 0x41f338
inc eax
cmp eax, ecx
jl 0x41f2e0
imul esi, edi
xor eax, eax
test ecx, ecx
jle 0x41f329
test eax, eax
jl 0x41f35a
cmp eax, ecx
jge 0x41f35a
mov edx, dword [ebx + 4]
mov edi, dword [edx + eax*8 + 4]
imul edi, dword [edx + eax*8]
cmp edi, esi
lea edx, [edx + eax*8]
jg 0x41f327
inc eax
cmp eax, ecx
jl 0x41f306
jmp 0x41f329
mov ecx, eax
push 1
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, ebx
call fcn.0041e430
mov eax, dword [esp + 0x28]
inc eax
add ebp, 0xe
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
jl 0x41f2b0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
call fcn.0046132c
int3
Function at 0x41f740
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebp
xor ebp, ebp
push edi
mov dword [esp + 8], ebp
cmp eax, ebp
je 0x41f83f
cmp word [eax], bp
je 0x41f83f
push ebp
push 0x80
push 2
push ebp
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41f828
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push ebp
lea eax, [esp + 0x1c]
push eax
push 2
push 0x4d47d0
push edi
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
je 0x41f808
cmp dword [esp + 0x18], 2
jne 0x41f7eb
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov esi, dword [eax - 0xc]
push ebp
lea edx, [esp + 0x1c]
push edx
add esi, esi
push esi
push eax
push edi
mov dword [esp + 0x2c], ebp
call ebx
test eax, eax
je 0x41f808
cmp esi, dword [esp + 0x18]
jne 0x41f7eb
push edi
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
pop edi
pop ebp
pop ecx
ret
push edi
mov ebp, 0x1f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
pop edi
pop ebp
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
pop edi
pop ebp
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
pop edi
pop ebp
pop ecx
ret
mov ebp, 0x57
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
pop edi
pop ebp
pop ecx
ret
Function at 0x4216b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x49eaf9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d6720]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edi
call fcn.00468b49
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4216fb
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov ebp, dword [esp + 0x2c]
add eax, 0x10
mov dword [ebp], eax
push edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
cmp esi, edi
je 0x421791
mov eax, dword [esp + 0x38]
cmp eax, edi
jne 0x421739
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov edx, dword [esp + 0x30]
mov ecx, edx
shr ecx, 4
inc ecx
movzx edi, cx
push eax
push edi
push 6
and edx, 0xf
push esi
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x421768
push 6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x421791
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x421791
xor edx, edx
movzx ecx, word [eax]
add eax, 2
test cx, cx
je 0x42178b
movzx ecx, cx
cmp edx, ebx
je 0x4217b5
lea eax, [eax + ecx*2]
inc edx
cmp edx, 0x10
jl 0x421776
mov eax, dword [esp + 0x34]
test eax, eax
je 0x42179f
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
lea edx, [ecx + ecx]
push edx
push eax
push ecx
mov ecx, ebp
call fcn.004051a0
push eax
call fcn.00484120
mov eax, dword [ebp]
mov ecx, dword [eax - 8]
add esp, 0xc
test eax, eax
je 0x4217e3
push ecx
push eax
call fcn.00483313
add esp, 8
test eax, eax
jl 0x421801
mov ecx, dword [ebp]
cmp eax, dword [ecx - 8]
jg 0x421801
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp]
xor edx, edx
mov word [ecx + eax*2], dx
mov dword [esp + 0x14], 1
jmp 0x421791
push 0x80070057
call fcn.00401210
int3
Function at 0x4227a0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x404
mov eax, dword [0x4d6720]
xor eax, esp
mov dword [esp + 0x400], eax
push ebx
mov ebx, dword [esp + 0x40c]
push ebp
push esi
push edi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov esi, eax
xor eax, eax
push 0x1fe
push eax
lea ecx, [esp + 0x21a]
push ecx
mov word [esp + 0x21c], ax
call fcn.00482db0
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add esp, 0xc
push 0x100
lea edx, [esp + 0x214]
push edx
push 0x59
push esi
call edi
test eax, eax
je 0x422858
xor eax, eax
push 0x1fe
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.00482db0
add esp, 0xc
push 0x100
lea edx, [esp + 0x14]
push edx
push 0x5a
push esi
call edi
test eax, eax
je 0x422858
lea esi, [ebp + 1]
test ebx, ebx
je 0x422854
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x214]
push ecx
push 0x4ab238
push ebx
call fcn.00404580
add esp, 0x10
mov eax, esi
jmp 0x42285a
mov eax, ebp
mov ecx, dword [esp + 0x410]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00482b5f
add esp, 0x404
ret
Function at 0x424040
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x49ed28
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4d6720]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
xor edi, edi
call fcn.00423f40
add esp, 4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0x2001f
push edi
push edx
push SysReAllocString
mov dword [esp + 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x424115
lea eax, [esp + 0x14]
push 0xffffffffffffffff
push eax
call fcn.00422880
mov eax, dword [eax]
mov edx, dword [esp + 0x14]
add esp, 8
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4240de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
jne 0x4240fb
cmp dword [esp + 0x18], 1
jne 0x424108
mov ecx, dword [esp + 0xc]
push ecx
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x424122
cmp esi, 2
je 0x424108
cmp esi, 3
je 0x424108
or edi, 0xffffffff
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x424122
cmp eax, 2
je 0x424122
cmp eax, 3
je 0x424122
or edi, 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42414a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret
Function at 0x424800
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
xor ebx, ebx
push edi
mov ecx, ebp
mov dword [esp + 0x18], ebx
call fcn.00401580
cmp dword [esp + 0x2c], 0x80
jne 0x424966
push 0x80
call fcn.0046083a
mov edi, eax
mov eax, dword [esp + 0x2c]
push 0x80
push eax
push edi
mov dword [esp + 0x30], edi
call fcn.00484120
movzx ecx, word [edi]
mov dword [esp + 0x3c], ecx
add esp, 0x10
fild dword [esp + 0x2c]
fmul qword [0x4aafe8]
call fcn.004833f6
xor eax, 0x291af12
xor edx, 0x719283b1
mov esi, 2
nop
xor byte [esi + edi], al
push ebx
push 0xd
push edx
push eax
call fcn.00483f40
inc esi
cmp esi, 0x80
jl 0x424870
movzx edx, byte [edi + 2]
cmp edx, ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], 0x19e7
mov dword [esp + 0x14], ebx
jle 0x42494a
add edi, 0x78
mov dword [esp + 0x2c], edi
lea esp, [esp]
mov eax, dword [esp + 0x2c]
movzx cx, byte [eax]
movzx esi, cx
xor eax, eax
movzx ecx, si
movsx edi, byte [eax + str.qud2U3bKh6X8V9arceTfGgijZklm7nBopRstv0wyz5ACWFHI1JLxMNO4PQDYSE]
cmp edi, ecx
je 0x4248d3
inc eax
cmp eax, 0x3e
jb 0x4248c0
jmp 0x4248de
movsx ax, byte [eax + 0x4aaf20]
movzx esi, ax
mov eax, dword [ebp]
mov ebx, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebx + 1]
sub eax, edi
or ecx, eax
jge 0x424904
push edi
mov ecx, ebp
call fcn.004015f0
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebp]
mov word [ecx + ebx*2], si
test edi, edi
jl 0x424972
mov eax, dword [ebp]
cmp edi, dword [eax - 8]
jg 0x424972
xor esi, dword [esp + 0x10]
dec dword [esp + 0x2c]
imul esi, esi, 0xb
mov dword [eax - 0xc], edi
mov eax, dword [ebp]
xor ecx, ecx
mov word [eax + edi*2], cx
movzx eax, si
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
inc eax
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x4248b0
mov edi, dword [esp + 0x20]
mov cx, word [esp + 0x10]
cmp cx, word [edi + 0x79]
jne 0x42495d
mov dword [esp + 0x18], 1
push edi
call fcn.0046082f
add esp, 4
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push 0x80070057
call fcn.00401210
int3
Function at 0x424fb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x49eea8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d6720]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x18], ebp
call fcn.00468b49
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x424ff7
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
cmp esi, ebp
je 0x4250b2
mov eax, dword [esp + 0x38]
cmp eax, ebp
jne 0x42502e
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
movzx ebx, word [esp + 0x30]
push eax
push ebx
push 0x4ab574
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
cmp edi, ebp
jne 0x42505a
push 0x4ab574
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebp
je 0x4250b2
mov ebp, dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
call ebp
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test ebx, ebx
je 0x4250b2
test eax, eax
je 0x4250b2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call ebp
test ebx, ebx
je 0x4250b2
test eax, eax
je 0x4250b2
cmp dword [esp + 0x34], 0
mov dword [esp + 0x18], 1
je 0x4250c4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
push ebx
call fcn.004212d0
add esp, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4250c4
lea eax, [esp + 0x14]
push eax
call fcn.00401a50
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4250f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x426990
Capabilities:
Get session user name
Query environment variable

Disassembly:
sub esp, 0x634
mov eax, dword [0x4d6720]
xor eax, esp
mov dword [esp + 0x630], eax
cmp dword [0x4d88bc], 0
push esi
push edi
mov edi, ecx
je 0x426ace
cmp dword [0x4d88c0], 0
je 0x426ace
cmp dword [0x4d88c4], 0
je 0x426ace
lea eax, [esp + 0xc]
push eax
push 8
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x4d88bc]
test eax, eax
je 0x426ace
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 1
push edx
mov dword [esp + 0x1c], 0
call dword [0x4d88c0]
mov eax, dword [esp + 8]
test eax, eax
jbe 0x426ac3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov esi, eax
lea eax, [esp + 8]
push eax
push ecx
push esi
push 1
push edx
call dword [0x4d88c0]
test eax, eax
je 0x426abc
mov eax, dword [esi]
xor ecx, ecx
mov word [esp + 0x228], cx
xor edx, edx
mov word [esp + 0x430], dx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x438]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x238]
push ecx
push eax
push 0
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x34], 0x104
call dword [0x4d88c4]
test eax, eax
je 0x426abc
lea edx, [esp + 0x228]
push edx
lea ecx, [edi + 0xbac]
call fcn.00401d90
lea eax, [esp + 0x430]
push eax
lea ecx, [edi + 0xbb0]
call fcn.00401d90
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi + 0xbac]
cmp dword [edx - 0xc], 0
lea esi, [edi + 0xbac]
je 0x426af3
mov eax, dword [edi + 0xbb0]
cmp dword [eax - 0xc], 0
je 0x426af3
mov eax, 1
jmp 0x426af5
xor eax, eax
mov dword [edi + 0xba8], eax
test eax, eax
je 0x426b1b
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.00482b5f
add esp, 0x634
ret
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x426b43
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00401d90
push 0x104
lea ecx, [esp + 0x24]
push ecx
push str.UserDomain
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x426b6c
lea edx, [esp + 0x20]
push edx
lea ecx, [edi + 0xbb0]
call fcn.00401d90
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x426b87
mov ecx, dword [edi + 0xbb0]
cmp dword [ecx - 0xc], 0
je 0x426b87
mov eax, 1
jmp 0x426b89
xor eax, eax
mov ecx, dword [esp + 0x638]
mov dword [edi + 0xba8], eax
pop edi
pop esi
xor ecx, esp
call fcn.00482b5f
add esp, 0x634
ret