joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42039c
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x65dde0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.00415b38
pop ecx
cmp eax, esi
je 0x420486
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x420486
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.0051b7f0
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x420486
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x420486
cmp esi, 0x14
jge 0x420486
push 0x10
push 0
push edi
call fcn.0051d5d3
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x420475
call fcn.0051b764
cmp dword [eax], 0x22
je 0x420475
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0051b123
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x42044b
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x66265c], 0
jne 0x420511
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x42053a
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0041fe1a
pop ecx
pop ecx
test eax, eax
jne 0x42053c
inc edi
cmp edi, esi
jl 0x420517
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051b5bd
leave
ret 8
Function at 0x42128a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4212d2
call fcn.0041ca7c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4212d2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x421315
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4212fe
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4212fe
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x421312
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42868a
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x65dde0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4286bf
xor eax, eax
jmp 0x428712
lea eax, [ebp - 0x210]
push eax
call fcn.0051b123
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4286f0
push 0x60fa70
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0051ada8
add esp, 0xc
test eax, eax
jne 0x4286bb
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0051ada8
add esp, 0xc
test eax, eax
jne 0x4286bb
lea eax, [ebp - 0x210]
push eax
call fcn.00415b38
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0051b5bd
leave
ret
Function at 0x438441
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00473c64
call fcn.0041c419
cmp dword [eax + 0x14], 0
jne 0x43845e
mov ecx, esi
pop esi
jmp fcn.00437f44
pop esi
ret

Function at 0x43c489
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0041455b
call fcn.0041c419
cmp dword [eax + 0x14], 0
jne 0x43c4a6
mov ecx, esi
pop esi
jmp fcn.0043be5c
pop esi
ret

Function at 0x477842
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x47785c
call fcn.0041ca7c
mov esi, dword [eax + 0xc]
push dword [0x664308]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x47787a
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x477872
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4778a7
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x477874
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00477770
mov esi, eax
jmp 0x477899

Function at 0x4fcee4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4fcefc
mov edi, dword [esi + 0xc]
jmp 0x4fcf3c
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4fcf15
call fcn.004126d2
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4fcf2a
call fcn.004126d2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4fcf3c
call fcn.004126d2
call fcn.0041ca7c
cmp dword [eax + 0x3c], 0
je 0x4fcf51
push edi
mov ecx, ebx
call fcn.004fbcfc
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004fcdfe
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4fcf6f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4fcf7b
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x51b5bd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x65dde0]
jne 0x51b5c7
repz ret
jmp fcn.00524a8c
Function at 0x52a7e8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x65dde0]
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.0051f93b
and dword [ebp - 0x14], 0
cmp dword [0x666e7c], 0
mov dword [ebp - 0x18], eax
jne 0x52a89b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x52a943
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x60d178
push ebx
call edi
test eax, eax
je 0x52a943
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x60d168
push ebx
mov dword [0x666e7c], eax
call edi
push eax
call esi
push 0x60d154
push ebx
mov dword [0x666e80], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x666e84], eax
call edi
push eax
call esi
mov dword [0x666e8c], eax
test eax, eax
je 0x52a89b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x666e88], eax
mov eax, dword [0x666e88]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x52a8f4
cmp dword [0x666e8c], ecx
je 0x52a8f4
push eax
call esi
push dword [0x666e8c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x52a8f4
test ebx, ebx
je 0x52a8f4
call edi
test eax, eax
je 0x52a8eb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x52a8eb
test byte [ebp - 8], 1
jne 0x52a8f4
or dword [ebp + 0x10], 0x200000
jmp 0x52a927
mov eax, dword [0x666e80]
cmp eax, dword [ebp - 0x18]
je 0x52a927
push eax
call esi
test eax, eax
je 0x52a927
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x52a927
mov eax, dword [0x666e84]
cmp eax, dword [ebp - 0x18]
je 0x52a927
push eax
call esi
test eax, eax
je 0x52a927
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x666e7c]
call esi
test eax, eax
je 0x52a943
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x52a945
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051b5bd
leave
ret
Function at 0x532f16
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x5d28e6
call fcn.005c1e48
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esi], method.CMap_class_CWnd___class_CWnd___class_CHwndRenderTarget___class_CHwndRenderTarget__.virtual_0
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 0xa
mov dword [ebp - 4], ebx
call fcn.00410911
push eax
lea ecx, [esi + 0x24]
call fcn.004013b8
mov byte [ebp - 4], 1
call fcn.00410911
push eax
lea ecx, [esi + 0x28]
call fcn.004013b8
mov byte [ebp - 4], 2
call fcn.00410911
push eax
lea ecx, [esi + 0x2c]
call fcn.004013b8
mov byte [ebp - 4], 3
call fcn.00410911
push eax
lea ecx, [esi + 0x30]
call fcn.004013b8
mov byte [ebp - 4], 4
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x21], bl
mov edi, 0x60f510
mov byte [esi + 0x22], 1
push edi
mov byte [esi + 0x20], bl
call fcn.00401d95
pop ecx
push eax
push edi
lea ecx, [esi + 0x2c]
call fcn.00401d24
push edi
call fcn.00401d95
pop ecx
push eax
push edi
lea ecx, [esi + 0x24]
call fcn.00401d24
push edi
call fcn.00401d95
pop ecx
push eax
push edi
lea ecx, [esi + 0x28]
call fcn.00401d24
lea eax, [ebp - 0x10]
push 0x625240
push eax
call fcn.00403d9c
pop ecx
pop ecx
push eax
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 5
call fcn.00402536
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401408
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x5373b0
Capabilities:
Check http status code

Disassembly:
mov eax, 0x5d822a
call fcn.005c1e48
sub esp, 0x34
push esi
push edi
xor edi, edi
inc edi
push edi
push 0x1bb
lea eax, [ebp - 0x1c]
push 0x624eb4
push eax
mov byte [ebp - 0xd], 0
call fcn.00403d9c
and dword [ebp - 4], 0
mov eax, dword [eax]
sub esp, 0x14
mov esi, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00401a33
mov ecx, ebx
call fcn.0053730a
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401408
cmp byte [ebx], 0
je 0x5374da
lea eax, [ebp - 0x1c]
push 0x624e14
push eax
call fcn.00403d9c
mov esi, eax
push 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], edi
call fcn.00536dc0
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
mov esi, dword [esi]
jb 0x53743b
mov eax, dword [eax]
push 0x4883000
push esi
push 0x61b4dc
push eax
push dword [ebx + 8]
call fcn.005bd890
add esp, 0x14
push edi
xor edi, edi
lea esi, [ebp - 0x40]
mov dword [ebp - 0x18], eax
call fcn.004018e3
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401408
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x5374d3
push 4
pop esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 0x20], esi
call fcn.005bd837
or dword [ebp - 0x14], 0x180
lea eax, [ebp - 0x14]
push eax
push 0x1f
push edi
call fcn.005bd947
xor eax, eax
push eax
push eax
push eax
push eax
push edi
call fcn.005bd9a0
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x20000013
push edi
mov dword [ebp - 0x24], esi
call fcn.005bddb6
add esp, 0x3c
cmp dword [ebp - 0x18], 0xc8
jne 0x5374d3
mov byte [ebp - 0xd], 1
push edi
call fcn.005bdd65
pop ecx
mov esi, ebx
call fcn.005372e8
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret

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

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x612438]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x612438]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x5385b1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x5385bc
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x538670
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x612438]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x612438]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x612438]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x612438]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x612438]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x612438]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x612438]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x612438]
add ecx, 8
sub edi, 8
dec esi
jne 0x5385d3
pop ebx
test edi, edi
je 0x538689
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x612438]
inc ecx
dec edi
jne 0x538674
pop esi
not eax
pop edi
ret
Function at 0x595839
Capabilities:
Hash data with md5

Disassembly:
push 0x40
lea eax, [esi + 4]
push 0
push eax
mov dword [esi], 0x61b578
call fcn.0051b7f0
and dword [esi + 0x48], 0
and dword [esi + 0x44], 0
add esp, 0xc
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
ret

Function at 0x596a52
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x5dbc87
call fcn.005c1e48
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov byte [edi + 0xc], al
mov dword [edi + 0x10], 0x61b550
mov dword [edi + 0x14], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x18], eax
mov dword [ebp - 4], eax
mov byte [edi + 0x24], al
push 0x60f510
lea esi, [edi + 0x34]
mov byte [edi + 0x25], al
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov byte [edi + 0x30], al
call fcn.00401a33
mov esi, edi
mov byte [ebp - 4], 1
call fcn.00596a37
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x597cae
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
xor edx, edx
mov dword [0x65f44c], eax
inc edx
mov ecx, 0x65f450
push esi
mov esi, eax
shr esi, 0x1e
xor eax, esi
imul eax, eax, 0x6c078965
add eax, edx
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x65fe0c
jl 0x40731d
mov dword [0x65f448], 0x270
pop esi
ret
call fcn.005bbcf4
jmp 0x40730f
Function at 0x5a5eb7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
and dword [ebp - 8], 0
push ebx
push esi
push edi
lea ebx, [eax + 0x4c]
push 8
pop ecx
mov esi, ebx
lea edi, [ebp - 0x3c]
mov word [ebp - 0xd], 0x66
mov byte [ebp - 0x15], 0x37
mov byte [ebp - 0x1c], 0x30
mov byte [ebp - 0xe], 0x65
mov dword [ebp - 0x14], 0x62613938
mov word [ebp - 0x10], 0x6463
mov dword [ebp - 0x19], 0x36353433
mov word [ebp - 0x1b], 0x3231
rep movsd dword es:[edi], dword [esi]
call fcn.005a5cb4
push 0xf
xor eax, eax
xor edx, edx
mov esi, ebx
pop edi
mov ecx, dword [esi]
mov ebx, ecx
shr ebx, 0x1c
mov bl, byte [ebp + ebx - 0x1c]
mov byte [ebp + eax - 0x84], bl
mov ebx, ecx
shr ebx, 0x18
and ebx, edi
mov bl, byte [ebp + ebx - 0x1c]
mov byte [ebp + eax - 0x83], bl
mov ebx, ecx
shr ebx, 0x14
and ebx, edi
mov bl, byte [ebp + ebx - 0x1c]
mov byte [ebp + eax - 0x82], bl
mov ebx, ecx
shr ebx, 0x10
and ebx, edi
mov bl, byte [ebp + ebx - 0x1c]
mov byte [ebp + eax - 0x81], bl
mov ebx, ecx
shr ebx, 0xc
and ebx, edi
mov bl, byte [ebp + ebx - 0x1c]
mov byte [ebp + eax - 0x80], bl
mov ebx, ecx
shr ebx, 8
and ebx, edi
mov bl, byte [ebp + ebx - 0x1c]
mov byte [ebp + eax - 0x7f], bl
mov ebx, ecx
shr ebx, 4
and ebx, edi
mov bl, byte [ebp + ebx - 0x1c]
and ecx, edi
mov cl, byte [ebp + ecx - 0x1c]
mov byte [ebp + eax - 0x7e], bl
mov byte [ebp + eax - 0x7d], cl
mov ecx, dword [ebp + edx*4 - 0x3c]
add eax, 8
mov dword [esi], ecx
inc edx
add esi, 4
cmp edx, 8
jl 0x5a5f0e
mov ecx, dword [ebp + 8]
mov byte [ebp + eax - 0x84], 0
lea eax, [ebp - 0x84]
call fcn.00402448
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x5ad572
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov cl, byte [edx]
or eax, 0xffffffff
test cl, cl
je 0x5ad5a0
push esi
movzx ecx, cl
push 7
xor eax, ecx
pop ecx
mov esi, eax
and esi, 1
neg esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec ecx
jns 0x5ad584
inc edx
mov cl, byte [edx]
test cl, cl
jne 0x5ad57c
pop esi
not eax
ret

Function at 0x5b13e5
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x5d4bbe
call fcn.005c1e48
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [edi], 0x60fafc
xor ebx, ebx
mov byte [edi + 0xc], 1
mov byte [edi + 4], bl
mov dword [edi + 8], ebx
mov dword [ebp - 4], ebx
call fcn.00410911
push eax
lea ecx, [edi + 0x18]
call fcn.004013b8
mov byte [ebp - 4], 1
call fcn.00410911
push eax
lea ecx, [edi + 0x1c]
call fcn.004013b8
mov byte [ebp - 4], 2
call fcn.00410911
push eax
lea ecx, [edi + 0x20]
call fcn.004013b8
mov byte [ebp - 4], 3
call fcn.00410911
push eax
lea ecx, [edi + 0x2c]
call fcn.004013b8
mov byte [ebp - 4], 4
call fcn.00410911
push eax
lea ecx, [edi + 0x30]
call fcn.004013b8
mov byte [ebp - 4], 5
call fcn.00410911
push eax
lea ecx, [edi + 0x34]
call fcn.004013b8
mov esi, 0x60f510
mov byte [ebp - 4], 6
push esi
mov dword [edi + 0x14], ebx
call fcn.00401d95
pop ecx
push eax
push esi
lea ecx, [edi + 0x18]
call fcn.00401d24
push esi
call fcn.00401d95
pop ecx
push eax
push esi
lea ecx, [edi + 0x1c]
call fcn.00401d24
push esi
call fcn.00401d95
pop ecx
push eax
push esi
lea ecx, [edi + 0x2c]
call fcn.00401d24
push esi
call fcn.00401d95
pop ecx
push eax
push esi
lea ecx, [edi + 0x30]
call fcn.00401d24
push esi
call fcn.00401d95
pop ecx
push eax
push esi
lea ecx, [edi + 0x34]
call fcn.00401d24
push esi
mov dword [edi + 0x38], ebx
call fcn.00401d95
pop ecx
push eax
push esi
lea ecx, [edi + 0x20]
call fcn.00401d24
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x24], ebx
mov byte [edi + 0x28], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1001a174
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001a1b3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001a1b3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001a1b3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001a1b3
cmp dword [ecx + 0x74], 0xe
jbe 0x1001a1b3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001ce2f
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 0x1001cecc
push ebx
push esi
call fcn.1001cdf8
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.1001cd8c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001ce79
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001cecb
push edi
push eax
call fcn.1001ddea
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001ce99
call fcn.1001b8d4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001ceca
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001cd8c
add esp, 0x20
test eax, eax
jne 0x1001ceb8
push edi
call fcn.1001b8d4
jmp 0x1001cec0
push ebx
call fcn.1001b8d4
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 0x1001d139
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024cc8
push 0x10024cc0
push str.FlsAlloc
push 0x1f
call fcn.1001d055
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d16d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10023150]
call esi
jmp 0x1001d173
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001d1b7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024cd8
push 0x10024cd0
push str.FlsGetValue
push 0x21
call fcn.1001d055
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d1ee
push dword [ebp + 8]
mov ecx, esi
call dword [0x10023150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001d1f6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024ce0
push 0x10024cd8
push str.FlsSetValue
push 0x22
call fcn.1001d055
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d230
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10023150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100228b0
Capabilities:
Parse pe header

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