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

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
lea eax, [esp + 0xc]
push eax
xor ebp, ebp
push ebx
mov dword [esp + 0x14], ebp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebp
jne 0x48d9ba
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push edi
push esi
call fcn.004e519e
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x48d9d4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push edi
push esi
push ebp
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x48da15
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x511ddc
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x48da15
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
mov dword [edx], ecx
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
mov ebp, 1
push edi
call fcn.004e4b2f
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x48da30
Capabilities:
Get session user name
Get user security identifier

Disassembly:
sub esp, 0x18
push ebp
xor ebp, ebp
cmp dword [esp + 0x20], ebp
je 0x48da61
lea eax, [esp + 8]
push eax
push ebp
push 2
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ebp
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x48da68
xor eax, eax
pop ebp
add esp, 0x18
ret
mov ecx, dword [esp + 8]
lea edx, [ecx + ecx]
push esi
push edx
call fcn.004e519e
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x48dba1
lea eax, [esp + 0xc]
push eax
push esi
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x48dba1
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
push ebp
lea eax, [esp + 0x20]
push eax
push ebp
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x48db98
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x48db98
mov ecx, dword [esp + 0x14]
push ebx
push ecx
call fcn.004e519e
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x48daee
push esi
call fcn.004e4b2f
add esp, 4
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x18
ret
mov edx, dword [esp + 0x14]
lea eax, [edx + edx]
push edi
push eax
call fcn.004e519e
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x48db1e
push esi
call fcn.004e4b2f
push ebx
call fcn.004e4b2f
add esp, 8
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x18
ret
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
lea eax, [esp + 0x28]
push eax
push ebx
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x48db77
lea ecx, [esp + 0x10]
push ecx
push ebx
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x48db77
mov edx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x30]
mov ecx, 0x64
call fcn.0041a290
mov edx, dword [esp + 0x10]
xor ecx, ecx
test eax, eax
setge cl
push edx
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x10], ebp
push esi
call fcn.004e4b2f
push ebx
call fcn.004e4b2f
push edi
call fcn.004e4b2f
mov eax, dword [esp + 0x2c]
add esp, 0xc
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x18
ret
push esi
call fcn.004e4b2f
add esp, 4
pop esi
xor eax, eax
pop ebp
add esp, 0x18
ret
Function at 0x48dbb0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x5364d0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea ecx, [esp + 0x1a]
xor eax, eax
push esi
push ecx
xor ebx, ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov word [esp + 0x20], ax
call fcn.004e8fe0
add esp, 0xc
push 0x104
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edi, [esp + 0x14]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x48dc04
mov ecx, 0xb
mov esi, 0x517c50
lea eax, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.0048d990
add esp, 0xc
test eax, eax
je 0x48dc50
cmp dword [esp + 0x10], 0x60002
jb 0x48dc50
cmp dword [esp + 0xc], 0x295a01c8
mov eax, 1
jae 0x48dc52
mov eax, ebx
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e3edb
add esp, 0x214
ret

Function at 0x48e0f0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x78
mov eax, dword [0x5364d0]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x7c]
push esi
xor ecx, ecx
push eax
mov eax, dword [esp + 0x88]
lea esi, [esp + 0xc]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.004cb1e0
add esp, 4
mov eax, esi
call fcn.004cb2f0
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov dword [edi], eax
mov eax, dword [esp + 0x6c]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x74]
pop esi
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
xor ecx, esp
mov eax, 1
call fcn.004e3edb
add esp, 0x78
ret
Function at 0x48e180
Capabilities:
Encode data using base64
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x526298
push 0x4e90c0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5364d0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov ebx, dword [ebp + 0xc]
xor eax, eax
cmp esi, eax
je 0x48e316
cmp ebx, eax
je 0x48e316
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x48e316
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x34], al
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov word [ebp - 0x27], ax
mov byte [ebp - 0x25], al
mov byte [ebp - 0x24], al
mov dword [ebp - 0x23], eax
mov word [ebp - 0x1f], ax
mov byte [ebp - 0x1d], al
mov dword [ebp - 4], eax
push ecx
push esi
lea edi, [ebp - 0x34]
call fcn.0048e0f0
add esp, 8
test eax, eax
je 0x48e30a
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048e060
add esp, 8
test eax, eax
je 0x48e30a
xor esi, esi
mov dword [ebp - 0x40], esi
xor edx, edx
mov dword [ebp - 0x44], edx
mov al, byte [ebp + esi - 0x24]
mov byte [ebp - 0x36], al
inc esi
mov dword [ebp - 0x40], esi
cmp esi, 8
jb 0x48e249
xor cl, cl
jmp 0x48e251
mov cl, byte [ebp + esi - 0x24]
inc esi
mov dword [ebp - 0x40], esi
cmp esi, 8
jb 0x48e25c
mov byte [ebp - 0x35], 0
jmp 0x48e267
mov al, byte [ebp + esi - 0x24]
mov byte [ebp - 0x35], al
inc esi
mov dword [ebp - 0x40], esi
movzx eax, byte [ebp - 0x36]
mov edi, eax
shr edi, 2
mov di, word [edi*2 + 0x511b20]
mov word [ebx + edx*2], di
movzx ecx, cl
mov edi, ecx
shr edi, 4
and eax, 3
shl eax, 4
or edi, eax
movzx eax, word [edi*2 + 0x511b20]
mov word [ebx + edx*2 + 2], ax
movzx eax, byte [ebp - 0x35]
mov edi, eax
shr edi, 6
and ecx, 0xf
add ecx, ecx
add ecx, ecx
or edi, ecx
mov cx, word [edi*2 + 0x511b20]
mov word [ebx + edx*2 + 4], cx
and eax, 0x3f
movzx eax, word [eax*2 + 0x511b20]
mov word [ebx + edx*2 + 6], ax
add edx, 4
mov dword [ebp - 0x44], edx
cmp esi, 8
jb 0x48e235
mov ecx, 0x3d
mov word [ebx + edx*2 - 2], cx
xor eax, eax
mov word [ebx + edx*2], ax
mov dword [ebp - 0x3c], 1
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x3c]
jmp 0x48e318
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x3c]
jmp 0x48e318
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004e3edb
mov esp, ebp
pop ebp
ret
Function at 0x48eb30
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x501ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x5364d0]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x424]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x434]
push eax
lea ecx, [esp + 0x18]
push ecx
mov esi, 0x566b20
mov dword [esp + 0x434], 0
call fcn.00427ee0
mov esi, dword [esp + 0x14]
mov ebp, dword [0x566b38]
test esi, esi
je 0x48eba5
cmp esi, dword [0x566b20]
je 0x48ebaa
call fcn.004e48f7
mov ebx, dword [esp + 0x18]
cmp ebx, ebp
je 0x48ec09
test esi, esi
jne 0x48ec05
call fcn.004e48f7
cmp ebx, dword [esi + 0x18]
jne 0x48ebc5
call fcn.004e48f7
lea eax, [ebx + 0x10]
call fcn.00404930
mov dword [esp + 0x42c], 0xffffffff
mov eax, dword [esp + 0x434]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48ebfb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x48ecac
mov esi, dword [esi]
jmp 0x48ebbb
xor ecx, ecx
push 0x3fe
push ecx
lea edx, [esp + 0x26]
push edx
mov word [esp + 0x28], cx
call fcn.004e8fe0
mov eax, dword [0x566b60]
mov edx, dword [esp + 0x440]
add esp, 0xc
push eax
push 0x200
lea ecx, [esp + 0x24]
push ecx
push 0
push edx
push 0x517d4c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x48ec7c
lea edx, [esp + 0x1c]
call fcn.00401600
mov dword [esp + 0x42c], 0xffffffff
mov eax, dword [esp + 0x434]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x48ebef
mov dword [esp + 0x42c], 0xffffffff
mov eax, dword [esp + 0x434]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48ecaa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x424]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.004e3edb
add esp, 0x41c
ret 4
Function at 0x48ed90
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
mov esi, 0x566b40
call fcn.00427ee0
mov esi, dword [esp + 0x10]
mov edi, dword [0x566b58]
test esi, esi
je 0x48edc5
cmp esi, dword [0x566b40]
je 0x48edca
call fcn.004e48f7
mov ebx, dword [esp + 0x14]
cmp ebx, edi
je 0x48ee1e
test esi, esi
jne 0x48ee1a
call fcn.004e48f7
cmp ebx, dword [esi + 0x18]
jne 0x48ede5
call fcn.004e48f7
mov edx, dword [ebx + 0x10]
mov eax, dword [esp + 0x20]
mov dword [ebp], edx
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48ee0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov esi, dword [esi]
jmp 0x48eddb
mov ecx, dword [0x566b60]
mov edx, dword [esp + 0x20]
push ecx
push 0xffffffffffffffff
push edx
push 0x517d4c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
or edx, 0xffffffff
cmp eax, edx
je 0x48ee4a
mov dword [ebp], eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
jmp 0x48edf5
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48ee67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
Function at 0x497470
Capabilities:
Delete registry key

Disassembly:
cmp dword [0x566b14], 0
jne 0x4974a9
cmp byte [0x5663c4], 0
jne 0x4974a9
push 0x518a00
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4974a2
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5663c8], eax
mov byte [0x5663c4], 1
mov ecx, dword [0x5663c8]
mov eax, dword [esi + 4]
test ecx, ecx
je 0x4974c8
mov edx, dword [esi + 0xc]
push 0
push edx
push eax
mov eax, dword [esi]
push eax
call ecx
neg eax
sbb eax, eax
inc eax
ret
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb eax, eax
inc eax
ret
Function at 0x49a520
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x504318
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x58]
lea eax, [esp + 0x30]
xor ebx, ebx
push eax
mov dword [esp + 0x30], ebx
call fcn.00474090
mov dword [esp + 0x50], ebx
mov edx, dword [0x563288]
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
mov dword [esp + 0x2c], esi
call eax
mov edx, dword [0x563288]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0xffffffff
mov byte [esp + 0x50], al
cmp edi, ebx
jne 0x49a5bb
xor eax, eax
jmp 0x49a5cf
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x49a5c0
sub eax, edx
sar eax, 1
push eax
push edi
lea eax, [esp + 0x18]
call fcn.00401560
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x24], 4
mov dword [esp + 0x30], ecx
call fcn.0049f6e0
cmp esi, ebx
je 0x49a659
mov ecx, dword [esi]
mov edx, dword [ecx + 0x7c]
push esi
call edx
mov ecx, eax
lea eax, [esp + 0x58]
add ecx, 4
push eax
call fcn.00401640
mov ecx, dword [esp + 0x58]
push 0x50fd60
push ecx
call fcn.004e4707
add esp, 8
cmp eax, ebx
jne 0x49a634
mov dword [ebp + 0x104], 1
mov byte [esp + 0x50], 1
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49a659
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [ebp + 0xbc]
push edx
call fcn.0049f3d0
xor eax, eax
cmp dword [ebp + 0x104], ebx
mov byte [esp + 0x50], bl
setne al
or edx, 0xffffffff
lea eax, [eax + eax + 6]
mov dword [ebp + 0x208], eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49a6a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49a6c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x49a6e9
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x40]
push ecx
call fcn.004a0ce0
mov edx, dword [esp + 0x40]
add esp, 4
push edx
call fcn.004e3ed0
add esp, 4
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.004e3ed0
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x44
ret 8
Function at 0x49e050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x502ce0
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x9c]
mov edx, dword [esp + 0xa0]
mov eax, dword [ebp]
mov eax, dword [eax + 0x20]
xor esi, esi
or edi, 0xffffffff
lea ecx, [esp + 0x1c]
push ecx
push edx
push ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x58], 0x10
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], edi
call eax
mov dword [esp + 0xa0], eax
cmp eax, esi
je 0x49e1d9
mov edi, edi
test byte [esp + 0x4c], 0x10
jne 0x49e154
cmp dword [esp + 0x50], esi
je 0x49e1aa
mov eax, dword [esp + 0xa4]
cmp eax, esi
je 0x49e13e
mov edx, dword [esp + 0x54]
mov dword [eax], edx
mov esi, dword [esp + 0x98]
mov ecx, dword [esp + 0x1c]
push esi
call fcn.00401640
jmp 0x49e1fa
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push ebp
lea eax, [esp + 0xa8]
push eax
mov ecx, ebx
call fcn.0049e050
mov dword [esp + 0x90], esi
mov eax, dword [esp + 0x9c]
cmp dword [eax - 0xc], esi
jne 0x49e218
add eax, 0xfffffff0
mov dword [esp + 0x90], edi
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49e1aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [ebp]
mov ecx, dword [ecx + 0x24]
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
call ecx
test eax, eax
jne 0x49e120
mov edx, dword [esp + 0xa0]
mov ecx, dword [ebp]
mov eax, dword [ecx + 0x28]
push edx
push ebp
call eax
mov edx, dword [0x563288]
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
call eax
mov esi, dword [esp + 0x98]
add eax, 0x10
mov dword [esi], eax
call fcn.004013b0
mov eax, esi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 0x10
add eax, 0xfffffff0
call fcn.004048c0
mov esi, dword [esp + 0x98]
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x90], edi
mov eax, dword [esp + 0x9c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x49e1fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x49e1fa
Function at 0x49e260
Capabilities:
Check for peb ntglobalflag flag
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x504238
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push ebp
push esi
mov eax, dword [0x5364d0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x94]
or eax, 0xffffffff
xor ebp, ebp
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x20]
push edx
push edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x50], 0x10
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x78], ebp
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], ebp
call eax
mov esi, eax
cmp esi, ebp
je 0x49e348
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.004e4707
add esp, 8
test eax, eax
je 0x49e37e
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
lea ecx, [esp + 0x14]
push ecx
push esi
push edi
call edx
test eax, eax
jne 0x49e314
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
push esi
push edi
call eax
mov edx, dword [0x563288]
mov eax, dword [edx + 0xc]
mov ecx, 0x563288
call eax
add eax, 0x10
mov dword [ebx], eax
mov esi, ebx
call fcn.004013b0
mov eax, ebx
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 0x10
test byte [esp + 0x44], 0x10
jne 0x49e3c4
cmp dword [esp + 0x48], ebp
je 0x49e3b1
mov eax, dword [esp + 0x9c]
cmp eax, ebp
je 0x49e39c
mov ecx, dword [esp + 0x4c]
mov dword [eax], ecx
mov edx, dword [edi]
mov eax, dword [edx + 0x28]
push esi
push edi
call eax
mov ecx, dword [esp + 0x14]
push ebx
call fcn.00401640
jmp 0x49e364
mov ecx, dword [edi]
mov edx, dword [ecx + 0x28]
push esi
push edi
call edx
push ebx
xor ecx, ecx
call fcn.00401640
jmp 0x49e364
mov eax, dword [0x563288]
mov edx, dword [eax + 0xc]
mov ecx, 0x563288
call edx
add eax, 0x10
mov dword [esp + 0x98], eax
mov ecx, dword [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x94]
push eax
push edi
lea edx, [esp + 0xa0]
push edx
mov dword [esp + 0x98], ebp
call fcn.0049e050
mov byte [esp + 0x88], 1
mov eax, dword [esp + 0x94]
push esi
push edi
cmp dword [eax - 0xc], ebp
je 0x49e450
mov ecx, dword [edi]
mov edx, dword [ecx + 0x28]
call edx
mov eax, dword [esp + 0x94]
add eax, 0xfffffff0
call fcn.004048c0
add eax, 0x10
mov dword [ebx], eax
lea ecx, [esp + 0x94]
call fcn.004016f0
lea ecx, [esp + 0x98]
call fcn.004016f0
jmp 0x49e364
mov eax, dword [edi]
mov ecx, dword [eax + 0x28]
call ecx
push ebx
xor ecx, ecx
call fcn.00401640
jmp 0x49e433
Function at 0x4a1860
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5364d0]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [0x56633c]
test eax, eax
jne 0x4a18e4
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.004e8fe0
add esp, 0xc
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x518be8
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x56633c], eax
test eax, eax
jne 0x4a18e4
mov dword [esi + 0x5c], 1
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004e3edb
add esp, 0x20c
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPISendMail
push eax
call edi
mov dword [esi + 0x64], eax
test eax, eax
je 0x4a190f
mov edx, dword [0x56633c]
push str.MAPISendDocuments
push edx
call edi
mov dword [esi + 0x68], eax
test eax, eax
jne 0x4a192e
mov dword [esi + 0x5c], 2
xor eax, eax
pop edi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004e3edb
add esp, 0x20c
ret
mov ecx, dword [esp + 0x20c]
pop edi
xor ecx, esp
mov eax, 1
call fcn.004e3edb
add esp, 0x20c
ret