joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465225
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea ecx, [ebp - 0x10]
push ecx
mov eax, 2
push edx
mov word [ebx], ax
call fcn.0045a52f
mov eax, dword [eax]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
lea esi, [ebp - 0x10]
mov edi, eax
call fcn.00401350
cmp edi, 0xffffffff
jne 0x465297
mov eax, dword [ebp + 0x10]
push 0x48b2e8
push eax
call fcn.0044cd93
add esp, 8
test al, al
je 0x465297
push 0
push 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add eax, ecx
call fcn.00403c90
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push 2
jmp 0x465277
mov eax, dword [ebp + 0x14]
lea ecx, [eax - 1]
mov dword [ebx + 4], edi
cmp ecx, 0xfffe
ja 0x465291
push eax
call dword [sym.imp.WSOCK32.dll_htons]
pop edi
mov word [ebx + 2], ax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4667e1
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x38
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.00412f40
add esp, 0xc
mov eax, 1
lea ecx, [ebp - 0x4c]
push ecx
push 0
push esi
mov dword [ebp - 0x4c], 0x7c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
call fcn.004111c1
add esp, 4
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x466844
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x48]
push 0
mov ecx, edi
call fcn.00403b70
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x3c]
push 0
lea ecx, [edi + 0x10]
call fcn.00403b70
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
push 0
lea ecx, [edi + 0x20]
call fcn.00403b70
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
push 0
lea ecx, [edi + 0x30]
call fcn.00403b70
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
lea esi, [edi + 0x40]
push 0
mov ecx, esi
call fcn.00403b70
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
lea ecx, [edi + 0x50]
push 0
call fcn.00403b70
lea eax, [edi + 0x50]
push eax
lea edx, [ebp - 0x10]
push edx
push esi
call fcn.0044cde9
push eax
lea esi, [edi + 0x60]
call fcn.0040e0a0
lea ecx, [ebp - 0x10]
call fcn.00402250
mov ax, word [ebp - 0x34]
mov word [edi + 0x78], ax
mov eax, dword [ebp - 0x40]
mov dword [edi + 0x74], eax
dec eax
je 0x4668fc
dec eax
je 0x4668ea
mov dword [edi + 0x70], 3
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x70], 2
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x70], 1
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x466a4b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0xd0], 0
je 0x466a8d
test al, al
je 0x466a8d
lea eax, [esi + 0xd4]
push eax
call fcn.004319f5
push esi
push 0
push 0x466a39
call fcn.00415214
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x18], eax
sete al
pop esi
pop ecx
pop ebp
ret 8
push eax
push esi
call fcn.0046690e
pop esi
pop ecx
pop ebp
ret 8

Function at 0x46888b
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov al, byte [0x4974e7]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x8000
push edi
mov byte [ebp - 4], al
call fcn.00414139
add esp, 4
push eax
call fcn.0041404e
add esp, 8
mov esi, eax
push ebx
mov dword [ebp - 8], esi
call fcn.00443d61
test al, al
je 0x4688e8
push edi
push ebx
call fcn.00443106
push eax
push 1
push ebx
call fcn.004680ed
push eax
call fcn.004142b6
add esp, 0x10
mov ebx, eax
jmp 0x468933
push esi
jmp 0x468946
lea esi, [ebp - 0x1c]
call fcn.0040d370
push ebx
call fcn.004533eb
push esi
push eax
call fcn.0045f645
mov edx, dword [ebp - 0x1c]
push edx
push 0x487e30
push edi
call fcn.00414330
add esp, 0xc
cmp byte [ebp - 4], 0
mov dword [ebp - 0xc], eax
je 0x468925
push ebx
call fcn.0045340c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea esi, [ebp - 0x1c]
call fcn.00401350
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push edi
call fcn.004145c6
add esp, 4
cmp esi, 0xffffffff
jne 0x4688e5
push 0x4000
push edi
call fcn.00414139
add esp, 4
push eax
call fcn.0041404e
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x468d9e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
xor edi, edi
mov byte [ebp + 0xb], 1
cmp dword [ebx + 4], esi
je 0x468eb9
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov byte [eax], 0
mov eax, dword [ebp + 0x10]
mov byte [ecx], 0
mov ecx, dword [ebp + 0xc]
mov byte [edx], 0
mov byte [eax], 0
mov dword [ecx], esi
lea ebx, [ebx]
push esi
push ebx
call fcn.004364e6
movzx eax, word [eax]
cmp eax, 0x2b
je 0x468e01
cmp eax, 0x5e
je 0x468dfc
cmp eax, 0x21
je 0x468dfc
cmp eax, 0x23
jne 0x468e34
cmp eax, 0x2b
jne 0x468e0a
mov edx, dword [ebp + 0x10]
mov byte [edx], 1
inc esi
jmp 0x468dde
cmp eax, 0x5e
jne 0x468e18
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
inc esi
jmp 0x468dde
cmp eax, 0x21
jne 0x468e26
mov ecx, dword [ebp + 0x18]
mov byte [ecx], 1
inc esi
jmp 0x468dde
cmp eax, 0x23
jne 0x468e31
mov edx, dword [ebp + 0x1c]
mov byte [edx], 1
inc esi
jmp 0x468dde
push esi
inc esi
push ebx
mov dword [ebp + 0x1c], esi
call fcn.004364e6
movzx eax, word [eax]
cmp eax, 0x7b
jne 0x468f22
mov eax, 0x40
lea ecx, [ebp - 0x10]
call fcn.004013c0
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 0x7d
call fcn.0045ffc2
test al, al
je 0x468efe
mov edx, dword [ebp - 0x10]
mov eax, dword [edi*4 + 0x492968]
push edx
push eax
call fcn.004114ab
add esp, 8
test eax, eax
je 0x468e8e
inc edi
cmp edi, 0x62
jl 0x468e70
cmp edi, 0x62
jne 0x468ef5
xor edi, edi
lea esi, [ebp - 0x10]
call fcn.00401c90
movzx ecx, word [eax]
push ecx
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov edx, dword [ebp + 0xc]
cwde
mov dword [edx], eax
cmp eax, 0xffffffff
jne 0x468ec4
mov ecx, esi
call fcn.00402250
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test eax, 0x200
je 0x468ed1
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 1
test eax, 0x400
je 0x468ede
mov edx, dword [ebp + 0x18]
mov byte [edx], 1
test eax, 0x100
je 0x468f18
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
mov byte [eax], 1
call fcn.00402250
jmp 0x468f5b
cmp byte [edi + 0x492af0], 0
je 0x468f0c
lea ecx, [ebp - 0x10]
mov byte [ebp + 0xb], 0
call fcn.00402250
jmp 0x468f5b
movzx ecx, byte [edi + str._f_b_b..__reepqrstuvwxyz________t___]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
lea ecx, [ebp - 0x10]
call fcn.00402250
jmp 0x468f5b
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov ecx, dword [ebp + 0xc]
cwde
mov dword [ecx], eax
cmp eax, 0xffffffff
je 0x468eb9
test eax, 0x200
je 0x468f41
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
test eax, 0x400
je 0x468f4e
mov ecx, dword [ebp + 0x18]
mov byte [ecx], 1
test eax, 0x100
je 0x468f5b
mov edx, dword [ebp + 0x10]
mov byte [edx], 1
mov eax, dword [ebp + 0xc]
and dword [eax], 0xff
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x401170
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x401195
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
lea ecx, [eax + 2]
mov edx, ebx
push esi
xor esi, esi
mov dword [ebp - 4], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4011a0
sub eax, dword [ebp - 4]
sar eax, 1
je 0x4011d4
inc esi
lea edx, [edx + eax*2]
add esi, eax
add edx, 2
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4011c0
sub eax, ebx
sar eax, 1
jne 0x4011b2
mov ebx, dword [ebp - 8]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
cmp esi, 0x7ffffffe
ja 0x4012d3
mov dword [edi + 0x14], 7
cmp esi, 7
ja 0x401226
mov dword [edi + 0x10], esi
add esi, esi
push esi
push ebx
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x401243
mov eax, 0x7fffffff
mov dword [ebp - 4], 0x7ffffffe
add eax, eax
jmp 0x401263
mov eax, 0xa
cmp ebx, eax
cmovb ebx, eax
mov dword [ebp - 4], ebx
lea eax, [ebx + 1]
cmp eax, 0x7fffffff
ja 0x4012ce
add eax, eax
cmp eax, 0x1000
jb 0x401288
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4012ce
push ecx
call fcn.0040181e
add esp, 4
test eax, eax
je 0x401282
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x40129b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
test eax, eax
je 0x401299
push eax
call fcn.0040181e
add esp, 4
mov ebx, eax
jmp 0x40129b
xor ebx, ebx
mov eax, dword [ebp - 4]
mov dword [edi + 0x10], esi
add esi, esi
push esi
push dword [ebp - 8]
mov dword [edi], ebx
push ebx
mov dword [edi + 0x14], eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
mov ebx, dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004010c0
call fcn.00401160
int3
Function at 0x4012e0
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402570
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0xa0]
call fcn.00401170
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x8c]
mov eax, ecx
mov edi, dword [ebp - 0x90]
sub eax, edi
cmp eax, 9
jb 0x401378
cmp ecx, 7
lea esi, [ebp - 0xa0]
lea eax, [edi + 9]
cmova esi, dword [ebp - 0xa0]
push 0x12
mov dword [ebp - 0x90], eax
push str.myvarboo
lea eax, [esi + edi*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 + 0x12], ax
jmp 0x401395
push 9
push ecx
mov byte [ebp - 0xf8], 0
lea ecx, [ebp - 0xa0]
push dword [ebp - 0xf8]
push 9
call fcn.00401690
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x8c]
cmp ecx, edx
jae 0x4013c5
lea eax, [ecx + 1]
cmp edx, 7
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xa0]
cmova eax, dword [ebp - 0xa0]
xor edx, edx
mov dword [eax + ecx*2], edx
jmp 0x4013e0
push 0
mov byte [ebp - 0xf8], 0
push dword [ebp - 0xf8]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.00401530
push 0x40
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xe4], 0x44
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea edi, [ebp - 0x88]
cmp dword [ebp - 0x8c], 7
lea eax, [ebp - 0xa0]
mov ecx, 0x1d
mov esi, str.LauncherJavaBinjavaw.exe__jar_LauncherTJoCLauncher.jar
cmova eax, dword [ebp - 0xa0]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xf4]
push ecx
lea ecx, [ebp - 0xe4]
push ecx
push 0
push eax
push 0x400
push 0
push 0
push 0
lea eax, [ebp - 0x88]
movsw word es:[edi], word [esi]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40145a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
push dword [ebp - 0xf4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xf0]
call esi
mov ecx, dword [ebp - 0x8c]
cmp ecx, 7
jbe 0x4014b2
mov edx, dword [ebp - 0xa0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4014a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4014a8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040184e
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401810
mov esp, ebp
pop ebp
ret

Function at 0x4020b0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4020ef
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4020ef
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4020ef
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4020ef
cmp dword [ecx + 0x74], 0xe
jbe 0x4020ef
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x420510
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 8
xor eax, eax
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push edi
push eax
push 0x40
push 5
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
mov edi, dword [sym.imp.KERNEL32.DLL_RtlMoveMemory]
lea ecx, [esp + 0xc]
push 1
push ecx
push esi
mov dword [esp + 0x18], 0xe9
call edi
lea eax, [esp + 8]
push 4
mov edx, dword [esp + 0x1c]
push eax
sub edx, esi
jo 0x420573
sub edx, 5
jo 0x420573
add esi, 1
mov dword [esp + 0x10], edx
jo 0x420573
push esi
call edi
pop edi
pop esi
add esp, 8
ret 8
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
xor ax, ax
ret

Function at 0x4206f0
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x9c
xor eax, eax
push esi
mov dword [esp + 8], eax
push edi
mov dword [esp + 0x10], eax
mov ecx, 6
mov dword [esp + 0x14], eax
lea edi, [esp + 0x20]
mov dword [esp + 0x18], eax
xor esi, esi
rep stosd dword es:[edi], eax
mov ecx, 9
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov ecx, 0x12
lea edi, [esp + 0x5c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 8], eax
call fcn.00421080
lea ecx, [esp + 0x20]
mov edi, eax
push ecx
call fcn.004210b0
lea edx, [esp + 8]
push edx
push 0x18
push eax
push esi
push edi
call fcn.00421090
cmp eax, 0xc0000004
jne 0x4207c9
mov eax, dword [esp + 8]
imul eax, eax, 2
jo 0x420858
test esi, esi
mov dword [esp + 8], eax
je 0x42077f
call fcn.00421070
push esi
push 1
push eax
call fcn.00421060
call fcn.00421070
mov ecx, dword [esp + 8]
push ecx
push 1
push eax
call fcn.00421050
mov esi, eax
call fcn.00421080
mov ecx, dword [esp + 8]
lea edx, [esp + 8]
push edx
push ecx
push esi
push 0
push eax
call fcn.00421090
cmp eax, 0xc0000004
je 0x42075c
test esi, esi
je 0x4207c9
lea edx, [esp + 0x20]
push edx
call fcn.004210b0
push 0x18
push esi
push eax
call fcn.00421000
lea eax, [esp + 0xc]
push eax
call fcn.004210b0
push 0x14
mov ecx, dword [esp + 0x28]
push ecx
push eax
call fcn.00421000
lea edx, [esp + 0xc]
mov esi, dword [esp + 0xa8]
push edx
mov dword [esp + 0x18], esi
call fcn.004210b0
push 0x14
push eax
mov eax, dword [esp + 0x2c]
push eax
call fcn.00421000
lea ecx, [esp + 0x38]
push ecx
call fcn.004210b0
push 0x24
mov edx, dword [esp + 0x1c]
push edx
push eax
call fcn.00421000
lea eax, [esp + 0x5c]
push eax
call fcn.004210b0
push 0x48
mov ecx, dword [esp + 0x48]
push ecx
push eax
call fcn.00421000
lea edx, [esp + 0x5c]
mov dword [esp + 0x74], esi
push edx
call fcn.004210b0
push 0x48
push eax
mov eax, dword [esp + 0x4c]
push eax
call fcn.00421000
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
Function at 0x420860
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
push edi
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x3c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, 0xa
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x138]
lea eax, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x18], ebx
xor esi, esi
call fcn.00420cd0
add eax, 4
movsx edx, word [esp + 0x50]
jo 0x4209b6
add eax, 0x14
jo 0x4209b6
add eax, edx
jo 0x4209b6
mov edi, eax
mov ax, word [esp + 0x42]
sub ax, 1
jo 0x4209b6
movsx ebp, ax
cmp ebp, ebx
jl 0x4209a7
lea ecx, [esp + 0x14]
push ecx
call fcn.004210b0
push 0x28
push edi
push eax
call fcn.00421000
mov eax, dword [esp + 0x38]
test eax, 0x20000000
je 0x42091e
test eax, 0x40000000
je 0x42090d
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
jmp 0x420943
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x70
add eax, 0x10
jmp 0x420943
test eax, 0x40000000
je 0x420936
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 2
add eax, 2
jmp 0x420943
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 7
inc eax
lea edx, [esp + 0x10]
mov esi, eax
push edx
call fcn.004210b0
push eax
push esi
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x140]
mov eax, dword [esp + 0x24]
add ecx, esi
push eax
jo 0x4209b6
push ecx
call fcn.00420fe0
test eax, eax
je 0x420990
add edi, 0x28
jo 0x4209b6
add ebx, 1
jo 0x4209b6
cmp ebx, ebp
jle 0x4208d7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret 4
mov esi, 4
call dword [sym.imp.KERNEL32.DLL_SetFileApisToANSI]
call dword [sym.imp.KERNEL32.DLL_SetFileApisToOEM]
call dword [sym.imp.USER32.DLL_WaitMessage]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
Function at 0xa2d370
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 0xa2d38e
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 0xa56074
push ecx
mov edi, eax
call fcn.00a41198
mov esi, eax
add esp, 8
test esi, esi
jne 0xa2d3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00a4102e
push esi
call fcn.00a40fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xa30850
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 0xa308ae
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 0xa5b720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xa308ba
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.00a411e1
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 0xa308ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xa5b720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xa3092a
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.00a42082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xa30957
mov word [eax], si
add eax, 2
push eax
call fcn.00a42030
add esp, 4
jmp 0xa30959
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 0xa308ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xa308b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xa30ff0
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 0xa31080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xa310c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xa56458
push ecx
call fcn.00a411e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00a411e1
add esp, 0x10
jmp 0xa310d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00a4120b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00a40dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00a31050
mov eax, dword [0xa5b728]
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 0xa3113b
push esi
call fcn.00a30fb0
add esp, 4
mov dword [0xa5b728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xa3114c
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.00a30ff0
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 0xa34440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xa344b7
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 0xa3448e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xa34471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xa3447e
add edx, ecx
cmp ebx, edx
jb 0xa3448a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xa34467
xor ecx, ecx
jmp 0xa344a2
test eax, eax
jne 0xa34492
xor ecx, ecx
jmp 0xa344a2
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.00a343c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xa348f0
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 0xa34921
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 0xa34946
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 0xa3496e
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 0xa34993
push ecx
push esi
call fcn.00a344c0
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