joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478270
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f5240
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00477e20
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00477ea0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00477ea0
lea ecx, [esi + 0xc]
call fcn.004e694b
lea ecx, [esi + 0x10]
call fcn.004e694b
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0047a6d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0047a6d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0047a6d0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004e69c0
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004e69c0
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x478f18
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f5468
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x478f28
call fcn.00479440
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x47900b
cmp byte [edi], 0
je 0x47900b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x478f4d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00477c40
test eax, eax
jne 0x478f6d
push 0x7831cc
lea ecx, [esi + 0x38]
call fcn.004e6afd
jmp 0x47900b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00477c90
test eax, eax
jne 0x478f9c
mov ecx, esi
call fcn.00477d90
push edi
add esi, 0x38
push 0x7831a8
push esi
call fcn.004e4957
add esp, 0xc
jmp 0x47900b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.00479cc0
test eax, eax
je 0x479004
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.004790e0
test eax, eax
jne 0x479020
push edi
lea eax, [esi + 0x38]
push 0x783184
push eax
call fcn.004e4957
add esp, 0xc
mov ecx, esi
call fcn.00479440
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x4790c8
mov ecx, dword [0x872a88]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.004e4957
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00477d40
test eax, eax
jne 0x47908a
push 0x783168
lea ecx, [esi + 0x38]
call fcn.004e6afd
jmp 0x47909a
push 0xfa
mov ecx, esi
call fcn.00479cc0
test eax, eax
jne 0x4790b7
mov ecx, esi
call fcn.00479440
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004e69c0
jmp 0x47900b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004e69c0
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x47db30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4f5758
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.0047df20
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x8a6fe4
call fcn.004c0053
mov ecx, dword [0x6936dc]
mov al, byte [esi]
push ecx
push ebx
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 1
mov byte [esp + 0x30], al
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.0047b2d0
mov esi, 0x693734
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x47dbd7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x47dbce
cmp al, 0xff
je 0x47dbce
dec al
mov byte [ecx], al
jmp 0x47dbd7
push ecx
call fcn.004e672a
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.004e2530
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x18], esi
je 0x47dc1d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x47dc14
cmp al, 0xff
je 0x47dc14
dec al
mov byte [ecx], al
jmp 0x47dc1d
push ecx
call fcn.004e672a
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.004c00da
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x490770
Capabilities:
Get common file path

Disassembly:
sub esp, 0x408
push ebx
push ebp
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
xor esi, esi
push eax
push 0x400
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [esp + 0x420]
lea edi, [esp + 0x18]
push ecx
or ecx, 0xffffffff
xor eax, eax
push 0x7c509c
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + ecx + 0x20]
push edx
call fcn.004bfe20
mov ebp, dword [esp + 0x428]
mov al, byte [esp + 0x1f]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
mov byte [ebp], al
xor eax, eax
add esp, 0xc
mov dword [ebp + 4], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp + 8], esi
mov ebx, ecx
mov dword [ebp + 0xc], esi
cmp ebx, 0xfffffffd
jbe 0x4907fe
call fcn.004cf5e5
mov ecx, dword [ebp + 4]
cmp ecx, esi
je 0x490830
mov al, byte [ecx - 1]
test al, al
je 0x490830
cmp al, 0xff
je 0x490830
cmp ebx, esi
jne 0x490861
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebp
call fcn.00491290
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x408
ret 8
cmp ebx, esi
jne 0x49084c
push 1
mov ecx, ebp
call fcn.00491290
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x408
ret 8
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x490858
cmp eax, ebx
jae 0x490869
push 1
mov ecx, ebp
call fcn.00491290
push ebx
mov ecx, ebp
call fcn.004914d0
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
pop edi
pop esi
mov byte [eax + ebx], 0
mov eax, ebp
pop ebp
pop ebx
add esp, 0x408
ret 8
Function at 0x490c30
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f5908
push eax
mov dword fs:[0], esp
sub esp, 0x10
xor al, al
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esi + 0xc]
test cl, cl
je 0x490d54
mov ecx, dword [esi + 4]
xor ebp, ebp
sub ecx, ebp
je 0x490d66
dec ecx
je 0x490cac
dec ecx
jne 0x490d54
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x490d7b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x490d7b
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x490ca5
mov eax, dword [0x69449c]
lea ecx, [esi + 0x10]
push eax
push ebp
call fcn.00491170
mov bl, 1
jmp 0x490d47
mov edx, dword [0x69449c]
mov cl, byte [esi + 0x10]
push edi
lea edi, [esi + 0x10]
push edx
mov byte [esp + 0x14], cl
push ebp
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.00490f70
mov eax, dword [esi + 8]
mov dword [esp + 0x28], ebp
cmp eax, ebp
je 0x490d35
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp eax, 1
jne 0x490d35
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x18]
cmp eax, ebp
je 0x490d04
mov eax, dword [0x69449c]
mov ecx, edi
push eax
push ebp
call fcn.00491170
mov eax, dword [esp + 0x14]
mov bl, 1
cmp eax, ebp
jne 0x490d13
mov eax, 0x694498
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x14]
pop edi
cmp ecx, ebp
je 0x490d43
mov al, byte [ecx - 1]
test al, al
je 0x490d39
cmp al, 0xff
je 0x490d39
dec al
mov byte [ecx - 1], al
jmp 0x490d43
xor bl, bl
jmp 0x490d1a
dec ecx
push ecx
call fcn.004e672a
add esp, 4
test bl, bl
je 0x490d52
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
mov al, bl
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov eax, dword [esi]
cmp eax, ebp
je 0x490d7b
push eax
call fcn.00491d10
add esp, 4
mov dword [esi], ebp
mov bl, 1
jmp 0x490d47
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x491660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push ebp
push esi
push edi
xor edi, edi
push 0x7c50bc
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x4916af
call fcn.004f01fe
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x491694
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push 0x7c50bc
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x4916af
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x4916c5
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4916d9
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x4916f2
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
mov edi, dword [esp + 0x18]
push edi
push ebx
push ebp
call fcn.00491e10
add esp, 0xc
test al, al
jne 0x491791
mov eax, dword [edi + 8]
cmp eax, ebx
jb 0x491799
mov esi, dword [0x6944a4]
jae 0x491721
call fcn.004cf7e8
mov ecx, edi
call fcn.004919a0
mov eax, dword [edi + 8]
mov ecx, eax
sub ecx, ebx
cmp ecx, esi
jae 0x491735
mov esi, ecx
test esi, esi
jbe 0x491773
mov ecx, dword [edi + 4]
sub eax, esi
sub eax, ebx
push eax
lea eax, [ecx + esi]
add eax, ebx
add ecx, ebx
push eax
push ecx
call fcn.004bde80
mov ebp, dword [edi + 8]
add esp, 0xc
sub ebp, esi
mov ecx, edi
push 0
push ebp
call fcn.00491880
test al, al
je 0x49176f
mov ecx, dword [edi + 4]
mov dword [edi + 8], ebp
mov byte [ecx + ebp], 0
mov ebp, dword [esp + 0x10]
mov edi, dword [edi + 4]
test edi, edi
jne 0x49177f
mov edi, 0x6944a0
mov ecx, ebx
mov esi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
mov edx, ebx
push 0
sub edx, eax
mov ecx, edi
push edx
call fcn.004917b0
jmp 0x491773

Function at 0x49c170
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x49c180
mov esi, 1
push esi
call fcn.004be687
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x49c1d2
call fcn.004bf1ad
mov edi, eax
call fcn.0049ecd0
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x49c1b6
mov edx, dword [0x7c7978]
mov dword [0x7c7974], edx
test al, 0x18
je 0x49c1c7
push esi
push 0x24
push 5
call fcn.0049f520
add esp, 0xc
test edi, edi
je 0x49c1ed
push 1
call fcn.004c053b
test byte [esp + 0x14], 0x20
je 0x49c1ed
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x49d2f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x49d3e4
cmp byte [edx], 0
je 0x49d3d7
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.0049d270
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.0049d270
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0049d1e0
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x49d3a1
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.0049d220
fmul qword [0x697a70]
push ecx
fstp qword [esp]
call fcn.004bcfe8
fadd qword [0x697a68]
add esp, 8
call fcn.004bd0b8
mov byte [ebx], al
inc ebx
dec edi
jne 0x49d374
lea ecx, [esp + 0x20]
push ecx
call fcn.0049d220
fmul qword [0x697a70]
push ecx
fstp qword [esp]
call fcn.004bcfe8
add esp, 8
call fcn.004bd0b8
cmp esi, ebx
je 0x49d3cd
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x49d3c6
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49d7b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x49d7e0
mov byte [edi + esi], 2
jmp 0x49d817
test al, 4
je 0x49d7ea
mov byte [edi + esi], 0xd
jmp 0x49d817
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x49d803
mov byte [edi + esi], 2
jmp 0x49d817
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x49d813
mov byte [edi + esi], 0x19
jmp 0x49d817
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x49d7c7
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x49d88b
cmp dl, 0xd
je 0x49d88b
xor edx, edx
jmp 0x49d890
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x49d87b
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x49d8b0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.0049c170
mov esi, eax
add esp, 8
test esi, esi
jne 0x49d8d1
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.0049ef10
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x49d8f6
push esi
call fcn.0049c200
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.004c1eec
push ebx
push edi
mov ebp, eax
call fcn.0049ef80
push 0x49d930
push ebp
push esi
call fcn.004a02b0
push esi
call fcn.0049c200
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x49ec40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x8bf980
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x8bf8b0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x49ecbb
push 0x4c
push 1
call fcn.004bf5d5
mov esi, eax
add esp, 8
test esi, esi
jne 0x49ec83
push 0x8bf980
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x8bf8b0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x8b47f0]
inc eax
lea edx, [esi + 0xc]
mov dword [0x8b47f0], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.004a2780
add esp, 8
mov byte [esi + 0x3c], 1
push 0x8bf980
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x49f140
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.004bf1ad
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.004c1eec
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x49f23a
call fcn.004bf1ad
cmp dword [eax], 0
je 0x49f187
call fcn.004bf1ad
mov ebp, dword [eax]
jmp 0x49f18a
or ebp, 0xffffffff
call fcn.0049ecd0
test esi, esi
mov dword [eax], ebp
jne 0x49f19f
call fcn.004bf1ad
cmp dword [eax], 4
je 0x49f1ef
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x49f1d2
cmp esi, 0xffffffff
je 0x49f214
test al, 6
je 0x49f1d2
call fcn.0049ecd0
mov ecx, dword [eax]
push ecx
push ebx
call fcn.004a27b0
add esp, 4
push eax
push 0x24
push 9
call fcn.0049f520
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x49f232
test al, 6
je 0x49f1e0
test ah, 2
je 0x49f232
test esi, esi
jbe 0x49f23e
test ah, 2
je 0x49f23e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.004bf1ad
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.004c1eec
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x49f23a
jmp 0x49f174
call fcn.0049ecd0
mov eax, dword [eax]
push eax
push ebx
call fcn.004a27b0
add esp, 4
push eax
push 0x24
push 2
call fcn.0049f520
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x49f24b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x49f254
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x4c062e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c064e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004bf13a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4c0671
test byte [esp + 8], 2
je 0x4c0671
call fcn.004bf1ad
mov dword [eax], 0xd
call fcn.004bf1b6
mov dword [eax], 5
jmp 0x4c064a
xor eax, eax
ret
Function at 0x4dcbd0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4f6bf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.004cf9a6
mov eax, dword [0x76358c]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.004cf8d8
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004dd670
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4dcc77
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4dcc6e
cmp al, 0xff
je 0x4dcc6e
dec al
mov byte [ecx], al
jmp 0x4dcc77
push ecx
call fcn.004e672a
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4dcca8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4dcc9f
cmp al, 0xff
je 0x4dcc9f
dec al
mov byte [ecx], al
jmp 0x4dcca8
push ecx
call fcn.004e672a
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4e8d8e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4e8dc6
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004e6e1b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004e6df3
jmp 0x4e8dd2
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ea47c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ea4be
call fcn.004f01fe
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ea4be
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ea4b5
xor eax, eax
jmp 0x4ea4c6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ea4cc
pop edi
pop esi
pop ebx
ret 4

Function at 0x4f072e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4f075c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f077a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f0694
jmp 0x4f077a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f077a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f0694
test edi, edi
mov eax, edi
jne 0x4f0764
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10001071
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x10001071
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x1000105a
jmp 0x10001071
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x10002080
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10029708
push 0x100229e6
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1002b0c0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, edx
mov esi, ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
mov edi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub ebx, esi
sub ebx, 5
mov byte [esi], 0xe9
mov dword [esi + 1], ebx
mov eax, 5
mov dword [ebp - 0x28], eax
cmp eax, edi
jae 0x100020f0
mov byte [esi + eax], 0x90
inc eax
jmp 0x100020e2
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1000210a
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10022a15
mov esp, ebp
pop ebp
ret