joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000fa00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
push edi
xor edx, edx
mov esi, 0x100625cc
mov edi, 0x10062c00
mov ebx, 0x10061c0c
nop dword [eax]
nop dword [eax + eax]
mov ecx, dword [edx + 0x100625d0]
xor ecx, dword [esi + edx]
and ecx, 0x7fffffff
xor ecx, dword [esi + edx]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + edx]
xor eax, ecx
mov dword [ebx + edx], eax
add edx, 4
cmp edx, 0x38c
jb 0x1000fa20
mov edx, 0x38c
mov esi, 0x100625d0
mov edi, 0x10061c0c
nop word [eax + eax]
mov eax, dword [edx + 0x100625cc]
mov ecx, dword [esi + edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x10061880]
xor eax, ecx
mov dword [edi + edx], eax
add edx, 4
cmp edx, 0x9bc
jb 0x1000fa70
mov ecx, dword [0x10062f88]
xor ecx, dword [0x10061c0c]
and ecx, 0x7fffffff
mov dword [0x10061c08], 0
xor ecx, dword [0x10062f88]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, ecx
xor eax, dword [0x1006223c]
pop esi
pop ebx
mov dword [0x100625c8], eax
ret
Function at 0x10014e90
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10046575
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x10059100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 4], 0
xorps xmm0, xmm0
xor esi, esi
movlpd qword [ebp - 0x28], xmm0
mov ecx, ebx
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], esi
call fcn.1000e660
test al, al
jne 0x10014f03
mov ecx, ebx
call fcn.1000e6b0
mov esi, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 4
jmp 0x10014f24
mov ecx, edi
call fcn.1000e660
test al, al
jne 0x10014f17
mov ecx, edi
call fcn.1000e6b0
mov esi, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], 0
xor edx, edx
lea ecx, [ebp - 0x50]
call fcn.10001ea0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.1000e6b0
push eax
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x10015005
mov esi, dword [ebp - 0x54]
test esi, esi
je 0x10014ffe
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 0x81
push 0
push 0
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10014f98
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x10014ff0
cmp byte [ebp + 0x14], 0
je 0x10014fb2
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 1
push 6
push edi
call ebx
lea ecx, [ebp + 0x1c]
call fcn.1000c7f0
test al, al
je 0x10014fc4
push edi
call fcn.1000d800
cmp dword [esi + 4], 0x17
jne 0x10014fde
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x1b
push 0x29
push edi
call ebx
push esi
push edi
call fcn.1000a5f0
test al, al
jne 0x10015036
mov ecx, edi
call fcn.10004d30
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x10014f63
mov esi, dword [ebp - 0x54]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
or edi, 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.1000ea20
lea ecx, [ebp + 0x1c]
call fcn.10003330
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1002a6ae
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x54]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x10015008

Function at 0x10018010
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x10061c0c], 0x1571
mov edx, 0x1571
mov eax, 1
mov ecx, edx
shr ecx, 0x1e
xor ecx, edx
imul edx, ecx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x10061c0c], edx
inc eax
cmp eax, 0x270
jb 0x10018024
mov dword [0x10061c08], 0x270
ret 8
Function at 0x10025940
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100470fd
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10059100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push ecx
lea ecx, [ebp - 0x14]
call fcn.10003a20
mov edx, dword [ebp + 8]
call fcn.10026750
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
lea ecx, [ebp - 0x14]
call fcn.10001a20
push eax
push 0x10026790
push 0
push 0
call fcn.1002f67a
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x100259d4
lea ecx, [ebp - 0x14]
call fcn.10017680
call fcn.10025f90
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.1002a6ae
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [edi], 0
call fcn.100292f8
int3

Function at 0x100276d6
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10059100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0x100277e1
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100277da
inc edi
cmp dword [ebp - 0x20], 0x10
jb 0x1002779e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1002779e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1002779e
mov edx, dword [esi]
test edx, edx
jne 0x10027767
push 0x200
push edx
push dword [0x100618d4]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x100277c3
lea ebx, [esi + 8]
jmp 0x10027791
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0x10027791
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x100618d4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x100277f2
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1002771f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x100277da
xor edi, edi
cmp dword [esi], edi
je 0x100277da
push dword [esi]
push edi
push dword [0x100618d4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002a6ae
leave
ret
mov ebx, dword [ebp - 0x24]
jmp 0x100277c3
Function at 0x100277f7
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.100276d6
test eax, eax
jne 0x1002781b
push 9
pop esi
jmp 0x10027862
cmp dword [edi], esi
je 0x10027862
push ebx
mov ebx, esi
cmp dword [edi + 8], esi
jbe 0x10027861
mov eax, dword [edi]
push dword [eax + ebx*4]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 4], eax
test eax, eax
je 0x1002785b
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.10027583
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [edi + 8]
jb 0x10027827
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x10027868
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x100278b4
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x100278a3
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1002789c
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10027879
pop ebx
push dword [esi]
push 0
push dword [0x100618d4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret

Function at 0x100278b6
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
imul edi, ecx, 0x2c
add edi, dword [0x10063000]
mov al, byte [edi + 0x14]
mov esi, dword [edi]
and al, 1
je 0x100278d2
sub esi, 5
movzx eax, al
lea ebx, [eax*2 + 5]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100278f3
push 0xa
pop eax
jmp 0x10027932
mov byte [esi], 0xe9
mov eax, dword [edi + 4]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
test byte [edi + 0x14], 1
je 0x1002790e
mov eax, dword [edi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [edi + 0x14], 6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10027dfe
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x10062ff8]
push esi
xor esi, esi
jmp 0x10027e10
cmp dword [edx + 4], esi
jne 0x10027e64
mov edx, dword [edx]
test edx, edx
jne 0x10027e09
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x10027e60
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0x10027e37
mov eax, dword [0x10062ff8]
mov dword [edx], eax
mov dword [0x10062ff8], edx
pop edi
test edx, edx
jne 0x10027e64
xor eax, eax
pop esi
ret
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret

Function at 0x100349a1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100349e0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100349e0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100349e0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100349e0
cmp dword [ecx + 0x74], 0xe
jbe 0x100349e0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10036059
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004c040
push 0x1004c038
push str.FlsAlloc
push 0x1f
call fcn.10035ee1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003608d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10048208]
call esi
jmp 0x10036093
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100360d7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004c050
push 0x1004c048
push str.FlsGetValue
push 0x21
call fcn.10035ee1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003610e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10048208]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10036116
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1004c058
push 0x1004c050
push str.FlsSetValue
push 0x22
call fcn.10035ee1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10036150
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10048208]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1003c028
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 0x1003c0c5
push ebx
push esi
call fcn.1003bff1
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.1003ae2c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1003c072
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003c0c4
push edi
push eax
call fcn.1003800f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1003c092
call fcn.100355ad
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1003c0c3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1003ae2c
add esp, 0x20
test eax, eax
jne 0x1003c0b1
push edi
call fcn.100355ad
jmp 0x1003c0b9
push ebx
call fcn.100355ad
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 0x1003e468
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10035951
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003e4d7
cmp esi, dword [ebp - 4]
je 0x1003e4d2
cmp dword [ebp + 0xc], 0
je 0x1003e4d2
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1003e4af
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1003dfba
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1003e4d9
xor eax, eax
inc eax
jmp 0x1003e4d9
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1003e53e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10059100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10035951
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10035951
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1003e5b5
cmp word [ecx], dx
je 0x1003e5b5
mov eax, dword [0x1004edcc]
push edi
dec eax
push eax
push 0x1004ecb8
call fcn.1003e4dd
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1003e628
cmp word [eax], dx
je 0x1003e628
mov eax, dword [edi]
test eax, eax
je 0x1003e5d9
cmp word [eax], dx
je 0x1003e5d9
lea eax, [ebp - 0x10]
push eax
call fcn.1003dec0
jmp 0x1003e5e2
lea eax, [ebp - 0x10]
push eax
call fcn.1003df5b
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1003e652
mov eax, dword [0x1004ecb4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1004e9a8
call fcn.1003e4dd
add esp, 0xc
test al, al
je 0x1003e652
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1003e61d
cmp word [eax], di
je 0x1003e61d
lea eax, [ebp - 0x10]
push eax
call fcn.1003dec0
pop ecx
jmp 0x1003e654
lea eax, [ebp - 0x10]
push eax
call fcn.1003df5b
jmp 0x1003e61a
mov eax, dword [edi]
test eax, eax
je 0x1003e63f
cmp word [eax], dx
je 0x1003e63f
lea eax, [ebp - 0x10]
push eax
call fcn.1003de75
pop ecx
jmp 0x1003e652
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1003e71d
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1003e362
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1003e71d
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1003e71d
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1003e71d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1003e6aa
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10036256
test ebx, ebx
je 0x1003e718
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10036256
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003e71d
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1003e71d
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100422b2
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1003e71f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002a6ae
leave
ret
Function at 0x100441a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100441cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100441cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xa5c370
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 0xa5c38e
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 0xa85074
push ecx
mov edi, eax
call fcn.00a70198
mov esi, eax
add esp, 8
test esi, esi
jne 0xa5c3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00a7002e
push esi
call fcn.00a6ffb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xa5f850
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 0xa5f8ae
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 0xa8a720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xa5f8ba
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.00a701e1
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 0xa5f8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xa8a720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xa5f92a
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.00a71082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xa5f957
mov word [eax], si
add eax, 2
push eax
call fcn.00a71030
add esp, 4
jmp 0xa5f959
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 0xa5f8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xa5f8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xa600c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xa85458
push ecx
call fcn.00a701e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00a701e1
add esp, 0x10
jmp 0xa600d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00a7020b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00a6fdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00a60050
mov eax, dword [0xa8a728]
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 0xa6013b
push esi
call fcn.00a5ffb0
add esp, 4
mov dword [0xa8a728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xa6014c
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.00a5fff0
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 0xa63440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xa634b7
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 0xa6348e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xa63471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xa6347e
add edx, ecx
cmp ebx, edx
jb 0xa6348a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xa63467
xor ecx, ecx
jmp 0xa634a2
test eax, eax
jne 0xa63492
xor ecx, ecx
jmp 0xa634a2
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.00a633c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xa638f0
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 0xa63921
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 0xa63946
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 0xa6396e
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 0xa63993
push ecx
push esi
call fcn.00a634c0
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