joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416eeb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
test esi, esi
je 0x416efb
mov dword [esi], edi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x416f41
push edi
lea ecx, [ebp + 0x14]
push ecx
mov ecx, 0x8000
cmp eax, ecx
cmovae eax, ecx
push eax
push dword [ebp + 0xc]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
add dword [ecx + 8], edx
adc dword [ecx + 0xc], edi
test esi, esi
je 0x416f36
add dword [esi], edx
test eax, eax
jne 0x416f41
call fcn.0040cd4f
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x41d54f
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee900
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0xb57060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edx, edx
mov dword [esi], vtable.CInFileStreamVol.0
mov dword [esi + 4], vtable.CInFileStreamVol.1.0
mov dword [esi + 8], vtable.CInFileStreamVol.2.0
mov dword [esi + 0xc], vtable.CInFileStreamVol.3.0
cmp dword [esi + 0x30], edx
je 0x41d5a2
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x74]
mov eax, dword [esi + 0x28]
mov byte [ecx + eax], dl
mov ecx, dword [esi + 0x30]
mov dword [ebp - 4], edx
test ecx, ecx
je 0x41d5b2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, esi
call fcn.004169d2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret

Function at 0x41dd40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eeda9
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0xb57060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00421420
lea ecx, [esi + 0x30]
call fcn.0041dce3
push dword [esi + 0x24]
call fcn.004d8b15
pop ecx
lea ecx, [esi + 0xc]
call fcn.00408e58
mov ecx, esi
call fcn.0041dbf7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret

Function at 0x421ed6
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0xb57060]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
mov edx, 0x4011
test al, al
mov ecx, 0x4110
lea eax, [ebp - 0x164]
cmovne ecx, edx
push ecx
push 0x160
push eax
push 0x90
push 0x4f2724
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d88c2
leave
ret 4
Function at 0x4225ea
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x11
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, dword [ebp + 8]
shr eax, 0xf
and al, 1
movzx ecx, word [edx + 0xc]
mov edx, ecx
cmp edx, 8
je 0x42262f
cmp edx, 0x52
je 0x42261e
cmp ecx, 0x76
jne 0x42262b
mov ecx, esi
call fcn.0042206b
jmp 0x422636
test al, al
je 0x42262b
mov ecx, esi
call fcn.00422f67
jmp 0x422636
xor al, al
jmp 0x422638
mov ecx, esi
call fcn.004228b4
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x424350
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
lea eax, [edi + 0x10]
push eax
push 0x64
push 0x66
call fcn.00424449
lea eax, [edi + 0x38]
mov ecx, edi
push eax
push 0x65
push 0x67
call fcn.00424449
mov ecx, edi
call fcn.0040b3d7
cmp byte [edi + 9], 0
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
jne 0x4243b7
push 0x1b8
push dword [edi + 4]
call ebx
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call esi
push 0x1b9
push dword [edi + 4]
call ebx
push 0
push eax
call esi
push 0xdb1
push dword [edi + 4]
call ebx
push 0
push eax
call esi
cmp byte [edi + 0xa], 0
je 0x4243e2
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 7
push 0x401
push dword [edi + 4]
call esi
push 7
push dword [edi + 4]
call ebx
push 1
push eax
push 0x28
push dword [edi + 4]
call esi
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x424449
Capabilities:
Get file system object information

Disassembly:
push 0x1d4
mov eax, 0x4f0470
call fcn.004d8b8d
mov ebx, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1d4]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1a4], eax
call fcn.004094de
and dword [ebp - 4], 0
cmp byte [edi], 0
je 0x4244ce
push dword [edi + 0xc]
lea eax, [ebp - 0x1e0]
push dword [edi + 8]
push eax
call fcn.004242d7
push eax
push 0xdb0
lea eax, [ebp - 0x1b0]
mov byte [ebp - 4], 1
push eax
call fcn.00424298
push eax
lea ecx, [ebp - 0x1d4]
mov byte [ebp - 4], 2
call fcn.004095a9
push dword [ebp - 0x1b0]
call fcn.004d8b15
push dword [ebp - 0x1e0]
mov byte [ebp - 4], 0
call fcn.004d8b15
pop ecx
pop ecx
lea eax, [edi + 0x18]
mov ecx, eax
mov dword [ebp - 0x1a0], eax
call fcn.00409f66
mov esi, eax
lea eax, [edi + 0x18]
push eax
lea ecx, [esi + 1]
push ecx
lea ecx, [ebp - 0x1c8]
call fcn.00409385
mov eax, dword [edi + 0x18]
lea ecx, [ebp - 0x1bc]
add eax, 2
mov byte [ebp - 4], 3
lea eax, [eax + esi*2]
push eax
call fcn.004094a8
lea eax, [ebp - 0x1c8]
mov byte [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.004243e8
lea eax, [ebp - 0x1bc]
mov ecx, ebx
push eax
call fcn.004243e8
lea eax, [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0040940a
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 5
call fcn.00409848
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0040977b
lea ecx, [ebp - 0x19c]
call fcn.00409848
lea eax, [ebp - 0x1d4]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0040977b
lea ecx, [ebp - 0x19c]
call fcn.00409848
cmp byte [edi + 1], 0
je 0x4245cc
push 0x3f4
lea eax, [ebp - 0x19c]
push eax
call fcn.004233de
push 0x4f3a74
lea ecx, [ebp - 0x19c]
call fcn.004097b9
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x10]
push eax
call fcn.0040dbee
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x19c]
call fcn.004097b9
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebx + 4]
call edi
push dword [ebp - 0x19c]
push eax
call fcn.0040e78d
push 0
push dword [ebp - 0x1a0]
lea eax, [ebp - 0x1b0]
push eax
call fcn.0040a460
push 0x110
push 0x160
lea eax, [ebp - 0x190]
push eax
push 0x80
push dword [ebp - 0x1b0]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push dword [ebp - 0x1b0]
mov esi, eax
call fcn.004d8b15
pop ecx
test esi, esi
je 0x42464d
push dword [ebp - 0x1a4]
push dword [ebx + 4]
call edi
push 0
push dword [ebp - 0x190]
push 0x170
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x19c]
call fcn.004d8b15
push dword [ebp - 0x1bc]
call fcn.004d8b15
push dword [ebp - 0x1c8]
call fcn.004d8b15
push dword [ebp - 0x1d4]
call fcn.004d8b15
add esp, 0x10
call fcn.004d8b3c
ret 0xc
Function at 0x4254a6
Capabilities:
Hide graphical window

Disassembly:
push 0x44
mov eax, 0x4f073d
call fcn.004d8b5a
mov ebx, ecx
push 0
call fcn.00426139
push 1
mov ecx, ebx
call fcn.00426624
push 0x198
lea eax, [ebp - 0x20]
push eax
call fcn.0040ddf7
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x20]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 2
push dword [ebx + 4]
call edi
push esi
push eax
call fcn.0040e78d
push dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
call fcn.004d8b15
pop ecx
push 1
push 1
push 0xf4
push 2
push dword [ebx + 4]
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x1bc
push dword [ebx + 4]
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call esi
push 0x1be
push dword [ebx + 4]
call edi
push 0
push eax
call esi
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x38]
lea ecx, [ebp - 0x50]
call fcn.0042493d
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 1
call fcn.0042493d
lea esi, [ebx + 0x214]
mov dword [ebp - 4], 2
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x1dc]
lea edi, [ebx + 0x1e4]
push edi
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], eax
call fcn.00424b77
lea eax, [edi + 0x18]
push eax
lea ecx, [ebp - 0x38]
call fcn.00424b77
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x40], 0
je 0x4255ee
cmp dword [ebp - 0x4c], 0
mov byte [ebx + 0x233], 1
jne 0x4255bd
push 0x4f3b4c
lea ecx, [ebp - 0x50]
call fcn.00409610
push 0x10
push dword [ebp - 0x50]
push dword [ebp - 0x44]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x425624
cmp byte [ebx + 0x156], 0
jne 0x425624
mov ecx, ebx
mov byte [ebx + 0x155], 1
call fcn.004264b0
jmp 0x42562d
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4255d5
mov byte [ebx + 0x233], 1
cmp dword [ebp - 0x28], eax
je 0x425624
cmp dword [ebp - 0x34], eax
jne 0x425613
push 0x4f3b4c
lea ecx, [ebp - 0x38]
call fcn.00409610
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
mov ecx, ebx
call fcn.00421ccb
lea ecx, [ebp - 0x50]
call fcn.00424b13
mov al, 1
call fcn.004d8b28
ret
Function at 0x42598a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov eax, dword [edx]
lea esi, [edi + 0xb4]
cmp eax, dword [esi]
jne 0x4259bd
cmp dword [edx + 8], 0xffffff65
jne 0x4259bd
movzx eax, word [edx + 0xc]
sub eax, 0x2d
je 0x4259df
sub eax, 0x14
je 0x4259c5
dec eax
sub eax, 1
je 0x4259df
xor al, al
pop edi
pop esi
pop ebp
ret 8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x4259bd
mov ecx, esi
call fcn.00425f80
mov al, 1
jmp 0x4259bf
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x4259bd
mov ecx, edi
call fcn.00424e55
jmp 0x4259db

Function at 0x42723a
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
mov eax, dword [0xb57060]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0xb5b154], 0
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
jne 0x4272a7
push esi
push edx
lea eax, [ebp - 0x2c4]
push eax
call fcn.0040a230
push 0x4010
push 0x160
lea ecx, [ebp - 0x164]
push ecx
mov ecx, dword [ebp + 0xc]
or ecx, 0x80
push ecx
push dword [eax]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push dword [ebp - 0x2c4]
mov esi, eax
call fcn.004d8b15
pop ecx
mov ecx, dword [ebp - 0x160]
mov eax, esi
pop esi
jmp 0x4272d4
mov eax, dword [0xb5b150]
test eax, eax
je 0x4272ce
push 0x4010
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
mov ecx, dword [ebp + 0xc]
or ecx, 0x80
push ecx
push edx
call eax
mov ecx, dword [ebp - 0x2b4]
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004d88c2
leave
ret 0xc
Function at 0x4448a0
Capabilities:
Check if file exists
Create thread
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1804
call fcn.004d92c0
mov eax, dword [0xb57060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1804]
push 0x1800
push 0
push eax
call fcn.004da720
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4448e5
test al, 0x10
je 0x444968
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1804]
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4448f0
lea ecx, [ebp - 0x1004]
sub ecx, esi
nop dword [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x444910
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x804]
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x444930
push 0
push 0
lea eax, [ebp - 0x1804]
push eax
push 0x444980
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, 0xffffffff
je 0x444968
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004d88c2
mov esp, ebp
pop ebp
ret

Function at 0x444ad0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0xb57060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0x2001f
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x444b3b
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
call fcn.004446b0
add esp, 0x10
test al, al
je 0x444b3b
push dword [ebp + 0x18]
push dword [ebp - 0xc]
push dword [ebp + 0x1c]
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d88c2
mov esp, ebp
pop ebp
ret
Function at 0x444b50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0xb57060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
movups xmm0, xmmword [str.SoftwareClasses]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov ax, word [0x4f4780]
push edi
mov edi, dword [ebp + 0x20]
mov word [ebp - 8], ax
or edi, 0x2001f
lea eax, [ebp - 0x30]
push eax
push edi
push 0
lea eax, [ebp - 0x28]
push eax
movzx eax, byte [ebp + 8]
movups xmmword [ebp - 0x28], xmm0
sub eax, 0x7fffffff
movups xmm0, xmmword [0x4f4770]
push eax
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x444c06
push esi
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
push edi
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x444c05
push dword [ebp + 0x20]
lea eax, [ebp - 0x2c]
push eax
push ebx
push esi
call fcn.004446b0
add esp, 0x10
test al, al
je 0x444c05
push dword [ebp + 0x18]
push dword [ebp - 0x34]
push dword [ebp + 0x1c]
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004d88c2
mov esp, ebp
pop ebp
ret
Function at 0x483700
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0d60
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0xb57060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004d8ace
mov esi, eax
add esp, 4
test esi, esi
je 0x483760
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004d9e7c
add esp, 4
mov dword [esi + 4], eax
jmp 0x483762
xor esi, esi
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b7fd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f115d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0xb57060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.004d8ace
mov edi, eax
add esp, 4
test edi, edi
je 0x4b8074
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004d9e7c
add esp, 4
mov dword [edi + 4], eax
jmp 0x4b8076
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.004835d0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [ebp - 0x10]
mov bl, al
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x4b80d0
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4b80d0
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x4b80ec
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x4b810f
cmp byte [ebp + 0xc], 0
je 0x4b80fb
push esi
call fcn.004da2f8
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x4b811b
mov esi, str.ios_base::badbit_set
jmp 0x4b812b
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.004b8160
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00483ba0
push 0x5086e8
lea eax, [ebp - 0x28]
push eax
call fcn.004db5cb
int3
Function at 0x4d38a0
Capabilities:
Access peb ldr_data
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f13b0
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0xb57060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x14]
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
push 0
push 0x4f2724
mov dword [ebp - 4], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
call fcn.004b7590
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d7e8c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push eax
push eax
push esi
push 0x4d6133
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1c], eax
pop esi
pop ebp
ret 4
Function at 0x4e4c57
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f9610
push 0x4f9608
push str.FlsAlloc
push 0x1e
call fcn.004e4ae1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4e4c8b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4f2340]
call esi
jmp 0x4e4c91
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4e4cd5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4f9620
push 0x4f9618
push str.FlsGetValue
push 0x20
call fcn.004e4ae1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4e4d0c
push dword [ebp + 8]
mov ecx, esi
call dword [0x4f2340]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4e699e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4e6a3b
push ebx
push esi
call fcn.004e6967
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004e5758
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4e69e8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4e6a3a
push edi
push eax
call fcn.004e416c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4e6a08
call fcn.004e4132
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4e6a39
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004e5758
add esp, 0x20
test eax, eax
jne 0x4e6a27
push edi
call fcn.004e4132
jmp 0x4e6a2f
push ebx
call fcn.004e4132
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x141cbdb
Capabilities:
Execute anti-debugging instructions

Disassembly:
add eax, 0x64813c03
cmc
clc
cmp dl, 0xb6
bswap eax
test cl, 0x70
clc
xor ebx, eax
test esp, 0x55d6762
add edi, eax
jmp 0x13df818
jmp edi
push edx
mov dx, ax
bswap dx
push ebx
push eax
movzx bx, ah
cmovae edx, ebx
pushfd
bts edx, esi
nop
push edi
push esi
and esi, edx
push ebp
rcl dl, 0xb8
add dx, 0x4d24
push ecx
mov ecx, 0
stc
push ecx
mov esi, dword [esp + 0x28]
cbw
add esi, 0x7d784940
sbb edi, 0x35ac6e8d
not esi
adc bl, 0xf9
add dh, 0x5c
sub esi, 0x39e95726
movzx ebx, si
ror esi, 3
bswap bp
dec esi
test esp, eax
bts ebp, esp
bswap esi
stc
rol ebp, 0x4b
bt ebx, eax
xor esi, 0x27d82c5b
cdq
sal ah, 0x4d
shrd edx, ebp, 0x18
lea esi, [esi + ecx]
neg bl
rdtsc
bt ax, 0x85
mov ebp, esp
shrd di, di, 0x8d
rdtsc
lea esp, [esp - 0xc0]
bswap di
mov ebx, esi
stc
shl dx, 0x47
mov edx, 0
rcr ah, 0xc7
stc
cwde
sub ebx, edx
lea edi, [0x141cc7e]
adc ax, si
rol ah, 0x9b
and eax, ebx
mov eax, dword [esi]
test ebp, 0x74f30abe
lea esi, [esi + 4]
clc
xor eax, ebx
stc
cmc
rol eax, 1
clc
test eax, ecx
neg eax
jmp 0xd7234d
Function at 0x10001d90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x10015da0
call fcn.10014f77
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x10001e0d
push 2
push ebx
push esi
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x10001e0d
call fcn.1000143d
mov esi, eax
jmp 0x10001f1d
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10001e30
call fcn.1000143d
jmp 0x10001f10
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x10001e26
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x10001e63
mov esi, 0x8007000e
jmp 0x10001f12
push 2
push eax
lea eax, [ebp - 0x41c]
mov byte [ebp - 4], 2
push eax
call fcn.10015429
test eax, eax
js 0x10001f4b
cmp dword [ebp - 0x41c], 0x400
jbe 0x10001eb3
push dword [ebp - 0x41c]
lea ecx, [ebp - 0x418]
call fcn.10015429
jmp 0x10001ebf
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x10001e59
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x428]
push ebx
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x10001e26
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x434]
push dword [ebp - 0x418]
call fcn.10015429
mov esi, eax
test edi, edi
je 0x10001f1d
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10001f36
lea ecx, [ebp - 0x418]
call fcn.10004b7b
lea ecx, [ebp - 0x42c]
call fcn.10004751
mov eax, esi
call fcn.10014ec8
ret 0x10
push eax
call fcn.10015429
int3