joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404da0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x404de8
call fcn.0040c2ad
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x404de8
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x404e2b
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x404e14
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x404e14
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x404e28
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40637e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4063a2
cmp dword [edi + 0x54], 0
jne 0x4063a2
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040c2ad
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040633f
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x409689
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x4096b4
call fcn.0040c2ad
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x4096d7
push eax
push dword [esi + 4]
call fcn.0040960f
push esi
push eax
mov ecx, 0x44dcec
call fcn.0040929d
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x409f30
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x439dc3
call fcn.00424946
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.00409ef0
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00402cc0
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x409f97
push eax
push dword [esi + 8]
call fcn.0040960f
push dword [esi + 0xc]
mov ecx, 0x44dcec
push eax
call fcn.0040929d
mov eax, esi
call fcn.00424a1e
ret 0x1c

Function at 0x4116ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4116f3
call fcn.0040c2ad
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x4116f3
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41170f
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00411226
mov esi, eax
test edi, edi
je 0x41170d
test ebx, ebx
je 0x41170d
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x412ac3
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x439f2f
call fcn.00424946
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x412ae8
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x412b2e
lea ecx, [ebp - 0x10]
call fcn.00402cc0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040404c
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401d20
mov eax, esi
call fcn.00424a1e
ret 8

Function at 0x4238d6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44c7f0]
jne 0x4238e0
repz ret
jmp fcn.00429aef
Function at 0x435259
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00429dff
and dword [ebp - 4], 0
cmp dword [0x4505cc], 0
mov ebx, eax
jne 0x43530a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4353bb
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x441834
push edi
call esi
test eax, eax
je 0x4353bb
push eax
call fcn.00429d8d
mov dword [esp], 0x441824
push edi
mov dword [0x4505cc], eax
call esi
push eax
call fcn.00429d8d
mov dword [esp], 0x441810
push edi
mov dword [0x4505d0], eax
call esi
push eax
call fcn.00429d8d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4505d4], eax
call esi
push eax
call fcn.00429d8d
pop ecx
mov dword [0x4505dc], eax
test eax, eax
je 0x43530a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00429d8d
pop ecx
mov dword [0x4505d8], eax
mov eax, dword [0x4505d8]
cmp eax, ebx
je 0x435362
cmp dword [0x4505dc], ebx
je 0x435362
push eax
call fcn.00429e08
push dword [0x4505dc]
mov esi, eax
call fcn.00429e08
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x435362
test edi, edi
je 0x435362
call esi
test eax, eax
je 0x435359
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x435359
test byte [ebp - 0xc], 1
jne 0x435362
or dword [ebp + 0x10], 0x200000
jmp 0x43539b
mov eax, dword [0x4505d0]
cmp eax, ebx
je 0x43539b
push eax
call fcn.00429e08
pop ecx
test eax, eax
je 0x43539b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43539b
mov eax, dword [0x4505d4]
cmp eax, ebx
je 0x43539b
push eax
call fcn.00429e08
pop ecx
test eax, eax
je 0x43539b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4505cc]
call fcn.00429e08
pop ecx
test eax, eax
je 0x4353bb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4353bd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005710
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1009fba8], 0
jne 0x100057b7
xor ecx, ecx
mov eax, ecx
shr eax, 1
test cl, 1
je 0x10005730
xor eax, 0xedb88320
test al, 1
je 0x1000573d
shr eax, 1
xor eax, 0xedb88320
jmp 0x1000573f
shr eax, 1
test al, 1
je 0x1000574c
shr eax, 1
xor eax, 0xedb88320
jmp 0x1000574e
shr eax, 1
test al, 1
je 0x1000575b
shr eax, 1
xor eax, 0xedb88320
jmp 0x1000575d
shr eax, 1
test al, 1
je 0x1000576a
shr eax, 1
xor eax, 0xedb88320
jmp 0x1000576c
shr eax, 1
test al, 1
je 0x10005779
shr eax, 1
xor eax, 0xedb88320
jmp 0x1000577b
shr eax, 1
test al, 1
je 0x10005788
shr eax, 1
xor eax, 0xedb88320
jmp 0x1000578a
shr eax, 1
test al, 1
je 0x10005797
shr eax, 1
xor eax, 0xedb88320
jmp 0x10005799
shr eax, 1
mov dword [ecx*4 + 0x1009f7a8], eax
inc ecx
cmp ecx, 0x100
jl 0x10005722
mov dword [0x1009fba8], 1
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
not edx
push edi
xor edi, edi
lea eax, [esi + eax*2]
mov ebx, eax
sub ebx, esi
inc ebx
shr ebx, 1
cmp esi, eax
cmova ebx, ecx
test ebx, ebx
je 0x100057fa
lea esp, [esp]
movzx eax, byte [esi]
lea esi, [esi + 2]
movzx ecx, dl
inc edi
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1009f7a8]
cmp edi, ebx
jb 0x100057e0
pop edi
not edx
pop esi
mov eax, edx
pop ebx
pop ebp
ret
Function at 0x100067e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029727
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1009e220]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebx + 0x18]
xor eax, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x1002b2e8
mov dword [ebp - 0x2c], ebx
mov word [ecx], ax
call fcn.10001e50
lea edi, [ebx + 0x30]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0
mov word [edi], ax
lea ecx, [ebx + 0x48]
mov byte [ebp - 4], 1
mov dword [ecx + 0x14], 7
push eax
mov dword [ecx + 0x10], eax
push 0x1002b2e8
mov word [ecx], ax
call fcn.10001e50
xor eax, eax
mov dword [ebx + 0x74], 7
mov dword [ebx + 0x70], 0
mov word [ebx + 0x60], ax
lea ecx, [ebx + 0x78]
mov byte [ebp - 4], 3
mov dword [ecx + 0x14], 7
push eax
mov dword [ecx + 0x10], eax
push 0x1002b2e8
mov word [ecx], ax
call fcn.10001e50
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push esi
push eax
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x98], 0
call fcn.100133b0
mov esi, eax
add esp, 8
cmp edi, esi
je 0x1000692c
cmp dword [edi + 0x14], 8
jb 0x10006911
push dword [edi]
call fcn.100141c9
add esp, 4
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
push esi
mov word [edi], ax
call fcn.10001320
cmp dword [ebp - 0x14], 8
jb 0x1000693d
push dword [ebp - 0x28]
call fcn.100141c9
add esp, 4
mov ecx, ebx
call fcn.10009b50
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10014fed
mov esp, ebp
pop ebp
ret 4
Function at 0x1000af30
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret

Function at 0x1000c550
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002a0c8
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x1009e220]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
mov bh, 1
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1000c766
xor eax, eax
mov dword [ebp - 0x27c], 7
mov dword [ebp - 0x280], 0
mov word [ebp - 0x290], ax
cmp word [ebp - 0x218], ax
jne 0x1000c5c4
xor ecx, ecx
jmp 0x1000c5df
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c5d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x290]
call fcn.10001e50
push 0xc
lea eax, [ebp - 0x278]
mov dword [ebp - 4], 0
push 0x1009dc24
push eax
call fcn.1000cbb0
push 0xd
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 1
push 0x1009dc3c
push eax
call fcn.1000cbb0
push 0xb
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 2
push 0x1009dc58
push eax
call fcn.1000cbb0
push 0xc
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 3
push 0x1009dc70
push eax
call fcn.1000cbb0
add esp, 0x30
mov byte [ebp - 4], 4
lea edi, [ebp - 0x278]
xor esi, esi
push 0x1002b334
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x2c0]
push eax
call fcn.10006570
push edi
push eax
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 5
push eax
call fcn.10006400
add esp, 0x18
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 6
jb 0x1000c699
mov eax, dword [eax]
mov ecx, dword [0x1009fbb0]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call fcn.10004610
test eax, eax
je 0x1000c6d0
cmp eax, 0xffffffff
je 0x1000c6d0
mov ecx, dword [0x1009fbb0]
push eax
call fcn.100045b0
mov bl, 1
jmp 0x1000c6d2
xor bl, bl
cmp dword [ebp - 0x294], 8
jb 0x1000c6e9
push dword [ebp - 0x2a8]
call fcn.100141c9
add esp, 4
xor eax, eax
mov dword [ebp - 0x294], 7
cmp dword [ebp - 0x2ac], 8
mov dword [ebp - 0x298], 0
mov word [ebp - 0x2a8], ax
mov byte [ebp - 4], 4
jb 0x1000c721
push dword [ebp - 0x2c0]
call fcn.100141c9
add esp, 4
test bl, bl
jne 0x1000c734
inc esi
add edi, 0x18
cmp esi, 4
jl 0x1000c660
jmp 0x1000c736
xor bh, bh
push fcn.100012b0
push 4
push 0x18
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 0
push eax
call fcn.10015bf2
cmp dword [ebp - 0x27c], 8
jb 0x1000c766
push dword [ebp - 0x290]
call fcn.100141c9
add esp, 4
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10014fed
mov esp, ebp
pop ebp
ret
Function at 0x1000ef90
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movsx eax, al
mov ecx, dword [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x1002c6e8]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edx + 8]
inc ecx
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x1002c6e8]
mov dword [edx + 8], eax
pop ebp
ret
Function at 0x10011540
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x1001154e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x10011623
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x1002c6e8]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x1002c6e8]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x1002c6e8]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x1002c6e8]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x1002c6e8]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x1002c6e8]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x1002c6e8]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x1002c6e8]
dec edi
jne 0x10011566
pop edi
test esi, esi
je 0x10011642
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x1002c6e8]
dec esi
jne 0x10011627
not eax
pop esi
pop ebp
ret

Function at 0x100127a0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov dl, byte [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 8]
mov ecx, esi
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
mov ecx, dword [edi]
shr eax, 8
xor dl, al
movsx eax, dl
xor eax, ecx
shr ecx, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x1002c6e8]
xor eax, ecx
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, esi
shr esi, 8
and eax, 0xff
xor esi, dword [eax*4 + 0x1002c6e8]
mov al, dl
mov dword [edi + 8], esi
pop edi
pop esi
pop ebp
ret

Function at 0x10013660
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1009e220]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.10015aa0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jbe 0x100136b2
call fcn.10013780
test eax, eax
je 0x100136c5
push 5
push 0x1002cae8
push 0
push 0
call fcn.10008460
add esp, 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10014fed
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100136e0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1009e220]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 0
push eax
mov dword [ebp - 0x14], 0
mov dword [esi], 0
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1001374f
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x10013757
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
pop esi
test eax, eax
je 0x10013766
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10014fed
mov esp, ebp
pop ebp
ret

Function at 0x10013780
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x1009e220]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
call fcn.100136e0
add esp, 4
cmp dword [ebp - 0x210], 0
je 0x100137c5
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10014fed
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x100137dc
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.10014fed
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10015aa0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x100a3c08]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x100137b7
push 0x38
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.10015aa0
add esp, 0xc
mov dword [ebp - 0x24c], 0x3c
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x240], str.runas
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x230], 1
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0
call fcn.10017141
int3
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4048b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4048c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404904
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404900
lea ebx, [ebx]
cmp esi, eax
jae 0x404904
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4048f0
cmp esi, eax
jb 0x40490a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4051d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x168
mov eax, dword [0x5ab720]
xor eax, esp
mov dword [esp + 0x164], eax
push esi
push edi
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x54], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x54], 6
jae 0x405213
xor esi, esi
push esi
call fcn.004f7f40
add esp, 4
jmp 0x405240
mov ecx, 0x11
mov esi, 0x5bbc50
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
lea edi, [esp + 8]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call fcn.004f94b0
xor eax, eax
xor ecx, ecx
cmp eax, esi
sete cl
pop edi
pop esi
mov eax, ecx
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.0052151a
mov esp, ebp
pop ebp
ret