joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b0970
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [esp + 0x14]
mov eax, ebx
je 0x4b0a4b
mov eax, dword [esi + 0x3c]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x4b09a4
cmp dword [esi + 0x40], edi
jae 0x4b09a4
push eax
call fcn.004c607b
add esp, 4
mov dword [esi + 0x3c], ebp
cmp dword [esi + 0x3c], ebp
jne 0x4b09bb
lea eax, [edi + edi]
push eax
call fcn.004c5d48
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.004cd6c0
add esp, 0xc
cmp edi, ebp
jbe 0x4b0a47
lea ecx, [ecx]
mov edx, dword [esi + 0x3c]
mov bl, byte [edx + ebp]
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x38]
movsx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x501a20]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x501a20]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, bl
mov byte [ecx + ebp], al
inc ebp
cmp ebp, dword [esp + 0x18]
jb 0x4b09d0
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
pop ebp
mov edx, dword [esi + 0x20]
test edx, edx
je 0x4b0a84
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x4b0a6c
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.004cd6c0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4b0aa5
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
ret 8

Function at 0x4b0f00
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esi + 0x84]
push edi
test ecx, ecx
je 0x4b0f4e
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
cmp eax, edi
jae 0x4b0f8b
sub edi, eax
cmp edi, edx
jbe 0x4b0f24
mov edi, edx
push edi
add eax, ecx
push eax
push ebx
call fcn.004cd6c0
mov eax, dword [esi + 0x78]
add dword [esi + 0x8c], edi
add dword [esi + 0x74], edi
add esp, 0xc
mov edx, edi
mov ecx, ebx
call fcn.004b0310
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
pop ecx
ret
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x4b0f84
push 0
lea ecx, [esp + 8]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b0f8b
mov edi, dword [esp + 4]
mov eax, dword [esi + 0x78]
add dword [esi + 0x74], edi
mov edx, edi
mov ecx, ebx
call fcn.004b0310
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
pop ecx
ret
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop ecx
ret
Function at 0x4cbf06
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x510dd0]
jne 0x4cbf10
repz ret
jmp fcn.004d055d

Function at 0x4ce970
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x510dd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004c8e12
and dword [ebp - 0x14], 0
cmp dword [0x51467c], 0
mov dword [ebp - 0x18], eax
jne 0x4cea23
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4ceacb
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4e10d0
push ebx
call edi
test eax, eax
je 0x4ceacb
mov esi, dword [fcn.004c4b70]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x51467c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x514680], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x514684], eax
call edi
push eax
call esi
mov dword [0x51468c], eax
test eax, eax
je 0x4cea23
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x514688], eax
mov eax, dword [0x514688]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.004c4b74]
cmp eax, ecx
je 0x4cea7c
cmp dword [0x51468c], ecx
je 0x4cea7c
push eax
call esi
push dword [0x51468c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4cea7c
test ebx, ebx
je 0x4cea7c
call edi
test eax, eax
je 0x4cea73
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4cea73
test byte [ebp - 8], 1
jne 0x4cea7c
or dword [ebp + 0x10], 0x200000
jmp 0x4ceaaf
mov eax, dword [0x514680]
cmp eax, dword [ebp - 0x18]
je 0x4ceaaf
push eax
call esi
test eax, eax
je 0x4ceaaf
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4ceaaf
mov eax, dword [0x514684]
cmp eax, dword [ebp - 0x18]
je 0x4ceaaf
push eax
call esi
test eax, eax
je 0x4ceaaf
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x51467c]
call esi
test eax, eax
je 0x4ceacb
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4ceacd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cbf06
leave
ret
Function at 0xac174b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
xor ebx, ebx
cmp eax, ebx
je 0xac17a6
cmp eax, 0xffffffff
je 0xac17a6
cmp dword [ebp + 8], ebx
je 0xac17a6
push esi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [edi + 0x44]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
add esi, esi
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xacf302
cmp esi, dword [ebp - 4]
jne 0xacf31d
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 4
mov ebx, 0x80070057
jmp 0xac179e

Function at 0xac227c
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0xad621c
call fcn.00ac1350
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push 0x20019
push dword [0xadb458]
lea ecx, [ebp - 0x2c]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.00ac2097
test eax, eax
jne 0xac23c4
lea eax, [ebp - 0x20]
push eax
push dword [0xadb45c]
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.00ac23dc
test eax, eax
jne 0xac23c4
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
add eax, eax
pop edx
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.00ac13e0
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0xac23c4
lea eax, [ebp - 0x20]
push eax
push dword [0xadb45c]
lea ecx, [ebp - 0x2c]
push esi
call fcn.00ac23dc
test eax, eax
jne 0xac23bb
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0xac23bb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00ac13e0
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0xac23bb
push edi
push eax
push dword [ebp - 0x1c]
call esi
mov esi, eax
cmp esi, ebx
je 0xac23b2
cmp dword [ebp + 8], ebx
je 0xacea08
push dword [0xadb460]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + esi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00ac13e0
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0xac23b2
push dword [ebp - 0x14]
push esi
push eax
call fcn.00ac21cb
push dword [0xadb460]
push edi
push dword [ebp - 0x18]
call fcn.00ac2436
push dword [ebp - 0x14]
call fcn.00ac13c0
pop ecx
push dword [ebp - 0x1c]
call fcn.00ac13c0
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00ac1f10
mov eax, dword [ebp - 0x18]
call fcn.00ac1390
ret 4
Function at 0xac23dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
jbe 0xac242c
cmp dword [ebp - 4], 2
ja 0xace965
mov ecx, dword [edi]
test cl, 1
jne 0xac242c
cmp esi, ebx
je 0xac2425
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
jne 0xac242c
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0xd
pop eax
jmp 0xac2425
Function at 0xac3a67
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0xac3ae4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0xac3ac0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0xac3ad0
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0xffffffff
pop esi
je 0xace30e
mov eax, dword [ebp - 8]
leave
ret
Function at 0xac4267
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0xadb00c], esi
jne 0xac42be
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0xac2c6f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0xadb00c], eax
cmp eax, esi
je 0xace4ec
push 0xffffffffffffffff
push dword [0xadb014]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0xadb014]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [0xadb018], esi
jl 0xace50a
pop esi
leave
ret

Function at 0xac4441
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0xac4498
call fcn.00ac2712
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0xac4490
cmp ecx, 0xffffffff
je 0xac4490
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0xac4489
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0xac4489
cmp edx, 0x10000000
jae 0xac4489
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0xace892
mov dword [ebp - 4], 0xfffffffe
call fcn.00ac2757
ret 4

Function at 0xac681f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0xadb004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, ecx
inc eax
cmp dword [esi + 0x2c], 0
jne 0xac6933
push edi
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x105
push edi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x420], eax
cmp eax, edi
ja 0xaced16
lea eax, [ebp - 0x41c]
push eax
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00ac21cb
test eax, eax
jl 0xac6932
mov ecx, dword [ebp - 0x420]
cmp word [ebp + ecx*2 - 0x210], 0x5c
je 0xac68c3
push 0xac6994
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00ac2436
test eax, eax
jl 0xac6932
push 0xac6980
push edi
lea eax, [ebp - 0x210]
push eax
call fcn.00ac2436
test eax, eax
jl 0xac6932
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0xaced20
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xac6970
push eax
call edi
push 0xac695c
push dword [esi + 0x2c]
mov dword [esi + 0x30], eax
call edi
push 0xac6948
push dword [esi + 0x2c]
mov dword [esi + 0x34], eax
call edi
cmp dword [esi + 0x30], 0
mov dword [esi + 0x38], eax
je 0xac6940
cmp dword [esi + 0x34], 0
je 0xac6940
test eax, eax
je 0xac6940
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00ac20d4
leave
ret
mov eax, 0x8007007f
jmp 0xac6932
Function at 0xac71f8
Capabilities:
Identify system language via api

Disassembly:
push 0x2c
mov eax, 0xad608c
call fcn.00ac39dd
lea ecx, [ebp - 0x34]
call fcn.00ac6c55
and dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
push 0
call fcn.00ac758b
test eax, eax
jl 0xac722c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00ac72a7
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov eax, 0x409
mov edi, 0xac7298
cmp ax, si
jne 0xace4b4
and esi, 0x3ff
push esi
push edi
lea eax, [ebp - 0x30]
push 8
push eax
call fcn.00ac1451
add esp, 0x10
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00ac758b
mov esi, eax
test esi, esi
jl 0xac7280
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00ac72a7
mov esi, eax
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.00ac760b
mov eax, esi
call fcn.00ac2b9f
ret

Function at 0xac791d
Capabilities:
Identify system language via api

Disassembly:
lea eax, [ebp - 0x30]
push eax
call esi
push 8
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x30], ax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0xacdc4f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0x82
lea edx, [ebp - 0x30]
push edx
push 0xac7900
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x30]
push eax
call edi
cmp esi, ebx
jl 0xac79a8
push 1
lea ecx, [ebp - 0x20]
call fcn.00ac79e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0xac78ec
push eax
call dword [ecx + 0x10]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.00ac71e0
cmp esi, ebx
jl 0xac79a8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
push 3
movzx eax, ax
pop ecx
mov word [ebp - 0x20], cx
mov dword [ebp - 0x18], eax
jmp 0xac7992
push 0x24
mov eax, 0xad5c85
call fcn.00ac26dd
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x20]
push eax
call esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
mov dword [ebp - 0x10], ebx
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp + 0xc], ebx
je 0xac7854
push 1
lea ecx, [ebp - 0x20]
call fcn.00ac79e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x20]
push edx
push 0xac3984
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0xac79a6
push 3
pop eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x18], 0x409
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20]
push edx
push 0xac79d0
push eax
call dword [ecx + 0x10]
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00ac7455
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20]
push eax
call edi
push eax
call fcn.00ac71e0
mov eax, esi
call fcn.00ac1390
ret 0xc
Function at 0xac7b05
Capabilities:
Identify system language via api

Disassembly:
push 0x50
mov eax, 0xad5fc0
call fcn.00ac39dd
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x5c], ecx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x54], esi
call fcn.00ac7c2b
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x58]
mov ebx, eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0xac7b34
sub eax, ecx
sar eax, 1
mov edi, eax
je 0xac7b63
movzx eax, word [ebx + esi*2]
push eax
call dword [sym.imp.msvcrt.dll_iswxdigit]
pop ecx
test eax, eax
je 0xac7b5b
inc esi
cmp esi, edi
jb 0xac7b46
cmp esi, edi
jb 0xac7c0e
xor eax, eax
mov edx, ebx
test edi, edi
jbe 0xac7c0e
cmp word [edx], 0x30
jne 0xac7b7c
inc eax
inc edx
inc edx
cmp eax, edi
jb 0xac7b6f
cmp eax, edi
jae 0xac7c0e
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0xac7b89
sub eax, esi
sar eax, 1
cmp eax, 3
ja 0xac7c0e
push 0x10
push 0
push edx
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp cx, si
jne 0xac7c03
movzx eax, ax
movzx eax, ax
push eax
push 0xac7c18
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.00ac1451
mov ecx, dword [ebp - 0x5c]
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call fcn.00ac6c60
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x58]
lea ecx, [ebp - 0x58]
call fcn.00ac760b
mov eax, dword [ebp - 0x54]
call fcn.00ac2b9f
ret 8
or esi, 0x400
movzx eax, si
jmp 0xac7bc6
mov dword [ebp - 0x54], 0x80041001
jmp 0xac7be9

Function at 0xad0d7d
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
push edi
lea eax, [ecx + eax + 0x18]
test esi, esi
jbe 0xad0dba
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0xad0db2
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0xad0dbc
inc edx
add eax, 0x28
cmp edx, esi
jb 0xad0da2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5d45ea
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x5d4629
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5d4629
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5d4629
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x5d4629
cmp dword [ecx + 0x74], 0xe
jbe 0x5d4629
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x5db8e8
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 0x5db985
push ebx
push esi
call fcn.005db8b1
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.005db845
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5db932
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5db984
push edi
push eax
call fcn.005da24b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5db952
call fcn.005da299
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5db983
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005db845
add esp, 0x20
test eax, eax
jne 0x5db971
push edi
call fcn.005da299
jmp 0x5db979
push ebx
call fcn.005da299
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 0x5dcb94
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x601600
push 0x6015f8
push str.FlsAlloc
push 0x1f
call fcn.005dca53
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5dcbc8
push dword [ebp + 8]
mov ecx, esi
call dword [0x5e313c]
call esi
jmp 0x5dcbce
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5dcc12
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x601610
push 0x601608
push str.FlsGetValue
push 0x21
call fcn.005dca53
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5dcc49
push dword [ebp + 8]
mov ecx, esi
call dword [0x5e313c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5dcc51
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x601618
push 0x601610
push str.FlsSetValue
push 0x22
call fcn.005dca53
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5dcc8b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5e313c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x5e2050
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5e207d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5e207d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x419a20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.IaDsgWGk
lea edi, [esi - 0x10000]
push edi
or ebp, 0xffffffff
jmp 0x419a42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419a49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419a38
mov eax, 1
add ebx, ebx
jne 0x419a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419a50
jne 0x419a6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419a50
xor ecx, ecx
sub eax, 3
jb 0x419a80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419af2
mov ebp, eax
add ebx, ebx
jne 0x419a8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419a98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419abc
inc ecx
add ebx, ebx
jne 0x419aa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419a9d
jne 0x419ab9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419a9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419adc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419acd
jmp 0x419a3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419adc
add edi, ecx
jmp 0x419a3e
pop esi
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419b44
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x199f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19a74]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419af9
mov ecx, edi
jns 0x419b28
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19a7c]
or eax, eax
je 0x419b3e
mov dword [ebx], eax
add ebx, 4
jmp 0x419b16
call dword [esi + 0x19a78]
mov ebp, dword [esi + 0x19a80]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x419b78
sub esp, 0xffffff80
jmp section.VHqxTUpa