joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429f30
Capabilities:
Set file attributes

Disassembly:
push ecx
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x429f40
mov eax, dword [esi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push 1
push eax
mov eax, esi
call fcn.00424520
test al, al
setne al
pop ecx
ret 8

Function at 0x42a0c0
Capabilities:
Get file size

Disassembly:
push ecx
push esi
push 0
push eax
mov eax, dword [esp + 0x14]
mov ecx, edi
call fcn.00424520
test al, al
jne 0x42a0d9
pop esi
pop ecx
ret 4
mov edx, dword [edi + 4]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42a103
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42a103
xor esi, esi
mov dword [edi + 0x358], esi
mov al, 1
pop esi
pop ecx
ret 4
Function at 0x42b120
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, ebx
call fcn.0042abf0
test eax, eax
jl 0x42b358
mov edx, dword [ebx + 0xf0]
add edx, edx
push esi
add edx, edx
xor esi, esi
push edi
test edx, edx
jle 0x42b18d
lea ecx, [ebx + edx*4 + 8]
lea eax, [ebx + 8]
push ebp
lea esp, [esp]
mov ebp, dword [ecx - 8]
mov edi, dword [eax - 8]
mov dword [eax - 8], ebp
mov ebp, dword [ecx - 4]
mov dword [ecx - 8], edi
mov edi, dword [eax - 4]
mov dword [eax - 4], ebp
mov ebp, dword [ecx]
mov dword [ecx - 4], edi
mov edi, dword [eax]
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [eax + 4], ebp
mov dword [ecx + 4], edi
add esi, 4
sub edx, 4
add eax, 0x10
sub ecx, 0x10
cmp esi, edx
jl 0x42b150
pop ebp
mov edx, 1
cmp dword [ebx + 0xf0], edx
jle 0x42b354
lea eax, [ebx + 2]
mov ecx, dword [eax + 0xe]
movzx edi, byte [eax + 0xf]
mov edi, dword [edi*4 + 0x4cd890]
add eax, 0x10
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x4cd890]
and esi, 0xff
mov esi, dword [esi*4 + 0x4ce490]
and edi, 0xff
xor esi, dword [edi*4 + 0x4cec90]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4cd890]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x4cf090]
movzx ecx, byte [eax]
mov ecx, dword [ecx*4 + 0x4cd890]
movzx edi, byte [eax + 3]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x4ce890]
mov ecx, dword [eax + 2]
mov dword [eax - 2], esi
mov edi, dword [edi*4 + 0x4cd890]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x4cd890]
and esi, 0xff
mov esi, dword [esi*4 + 0x4ce490]
and edi, 0xff
xor esi, dword [edi*4 + 0x4cec90]
movzx edi, byte [eax + 4]
mov edi, dword [edi*4 + 0x4cd890]
and edi, 0xff
xor esi, dword [edi*4 + 0x4ce890]
movzx edi, byte [eax + 7]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4cd890]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x4cf090]
mov ecx, dword [eax + 6]
mov dword [eax + 2], esi
mov edi, dword [edi*4 + 0x4cd890]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x4cd890]
and esi, 0xff
mov esi, dword [esi*4 + 0x4ce490]
and edi, 0xff
xor esi, dword [edi*4 + 0x4cec90]
movzx edi, byte [eax + 8]
mov edi, dword [edi*4 + 0x4cd890]
and edi, 0xff
xor esi, dword [edi*4 + 0x4ce890]
movzx edi, byte [eax + 0xb]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4cd890]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x4cf090]
mov ecx, dword [eax + 0xa]
mov dword [eax + 6], esi
mov edi, dword [edi*4 + 0x4cd890]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x4cd890]
and esi, 0xff
mov esi, dword [esi*4 + 0x4ce490]
and edi, 0xff
xor esi, dword [edi*4 + 0x4cec90]
movzx edi, byte [eax + 0xc]
mov edi, dword [edi*4 + 0x4cd890]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4cd890]
and edi, 0xff
xor esi, dword [edi*4 + 0x4ce890]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x4cf090]
inc edx
mov dword [eax + 0xa], esi
cmp edx, dword [ebx + 0xf0]
jl 0x42b1a1
pop edi
xor eax, eax
pop esi
ret
Function at 0x42bea0
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
mov edi, eax
cmp edi, 3
mov esi, edx
jl 0x42bf25
mov eax, 0xaaaaaaab
mul edi
shr edx, 1
lea eax, [edx + edx*2]
sub edi, eax
push ebx
lea ebx, [ebx]
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + 0x4cd3c8]
mov byte [ecx], al
movzx eax, byte [esi]
movzx ebx, byte [esi + 1]
and eax, 3
shl eax, 4
shr ebx, 4
or eax, ebx
movzx eax, byte [eax + 0x4cd3c8]
mov byte [ecx + 1], al
movzx eax, byte [esi + 1]
movzx ebx, byte [esi + 2]
inc ecx
and eax, 0xf
add eax, eax
add eax, eax
shr ebx, 6
or eax, ebx
movzx eax, byte [eax + 0x4cd3c8]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 2]
and eax, 0x3f
movzx eax, byte [eax + 0x4cd3c8]
inc ecx
mov byte [ecx], al
inc ecx
add esi, 3
sub edx, 1
jne 0x42bec0
pop ebx
test edi, edi
jle 0x42bf85
movzx edx, byte [esi]
shr edx, 2
movzx eax, byte [edx + 0x4cd3c8]
mov byte [ecx], al
mov al, byte [esi]
and al, 3
inc ecx
shl al, 4
cmp edi, 1
jle 0x42bf4d
mov dl, byte [esi + 1]
shr dl, 4
or al, dl
movzx eax, al
mov dl, byte [eax + 0x4cd3c8]
mov byte [ecx], dl
inc ecx
cmp edi, 2
jge 0x42bf6f
mov eax, 0x3d
mov byte [ecx], al
inc ecx
mov byte [ecx], al
inc ecx
pop edi
mov byte [ecx], 0
pop esi
ret
movzx eax, byte [esi + 1]
and eax, 0xf
movsx eax, byte [eax*4 + 0x4cd3c8]
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
pop edi
mov byte [ecx], 0
pop esi
ret

Function at 0x42c100
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
push ebx
push esi
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x42c112
mov esi, 0x4fb734
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.0042a1a0
add esp, 4
lea ebx, [esp + 8]
mov eax, esi
call fcn.0042a440
mov eax, esi
pop esi
pop ebx
add esp, 0x5c
ret
Function at 0x42cc20
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4f7b40], 0
je 0x42cc75
mov eax, dword [0x4f7b48]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42cc75
cmp dword [eax], 0xd
jbe 0x42cc75
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x34]
test eax, eax
je 0x42cc75
push 0
push 0x4f8e64
push 0x4f8e44
push 0
push eax
call fcn.004773f4
add esp, 0x14
test eax, eax
je 0x42cc75
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 4]
mov dword [ecx], eax
mov al, 1
ret
xor al, al
ret

Function at 0x42cc80
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4f7b40], 0
push esi
push edi
mov esi, eax
je 0x42ccc9
mov eax, dword [0x4f7b48]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
test eax, eax
je 0x42ccc9
cmp dword [eax], 0xd
jbe 0x42ccc9
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + 0x34]
test ecx, ecx
jne 0x42ccf6
push 8
call fcn.004706a8
add esp, 4
test eax, eax
je 0x42ccce
mov dword [eax + 4], esi
mov dword [eax], 0x4d682c
mov esi, eax
jmp 0x42ccd0
pop edi
xor al, al
pop esi
ret
xor esi, esi
cmp dword [0x4f7b40], 0
je 0x42ccfe
mov edx, dword [0x4f7b48]
push edx
call edi
test eax, eax
je 0x42ccfe
cmp dword [eax], 0xd
jbe 0x42ccfe
mov eax, dword [eax + 8]
mov dword [eax + 0x34], esi
pop edi
mov al, 1
pop esi
ret
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push esi
call eax
pop edi
mov al, 1
pop esi
ret
Function at 0x42ceb0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x238
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x234], eax
mov eax, dword [esp + 0x23c]
push ebx
mov ebx, dword [esp + 0x248]
push ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x248]
push esi
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edx
test ebx, ebx
je 0x42d04b
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x42d04b
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
je 0x42d04b
mov al, byte [ebp]
cmp al, 0xe9
je 0x42cf27
cmp al, 0xe8
jne 0x42d04b
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x42]
push ecx
mov word [esp + 0x44], ax
call fcn.00476c30
add esp, 0xc
push 0x104
lea edx, [esp + 0x3c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push eax
lea esi, [esp + 0x2c]
lea edi, [esp + 0x3c]
mov word [esp + 0x2c], ax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
call fcn.00420070
mov edx, dword [esp + 0x1c]
add esp, 4
mov edi, esi
call fcn.0041f8c0
test al, al
je 0x42d04b
push 0x2c
call fcn.004706a8
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
add edi, 0x18
push ecx
mov eax, edi
mov dword [esp + 0x1c], esi
call fcn.0042e380
mov dword [esi], eax
push ebx
mov eax, edi
call fcn.0042e2e0
mov edx, dword [esp + 0x28]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov ecx, dword [ebp]
mov dword [esi + 0x10], ecx
mov edx, dword [ebp + 4]
mov dword [esi + 0x14], edx
mov eax, dword [ebp + 8]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x20]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x24], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42cfe6
push 0x40
sub eax, edx
push 0x1000
sar eax, 1
shr eax, 1
push 0x15
push 0
mov byte [esp + 0x27], al
mov byte [esi + 0x20], al
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, dword [esp + 0x20]
mov ebx, eax
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42d020
sub eax, edx
sar eax, 1
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x15
jg 0x42d042
call fcn.0042d150
test eax, eax
jg 0x42d04f
push esi
call fcn.0046fda3
add esp, 4
xor eax, eax
jmp 0x42d09f
movzx eax, byte [esp + 0x17]
push 5
lea edx, [esp + 0x34]
push edx
mov ecx, 0x15
sub ecx, eax
sub ebp, ebx
push ecx
add eax, ebx
mov dword [esp + 0x3d], 0
sub ebp, 5
push eax
mov byte [esp + 0x40], 0xe9
mov dword [esp + 0x41], ebp
call fcn.004703a4
mov dword [esi + 0x28], ebx
mov esi, dword [esp + 0x2c]
add esp, 0x10
lea edx, [esp + 0x18]
push edx
add esi, 0x84
call fcn.0042d1d0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046fdae
add esp, 0x238
ret 0xc
Function at 0x42de90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b1578
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov byte [eax + 4], cl
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], fcn.00470104
mov dword [eax + 0x24], fcn.00470421
mov dword [eax + 0x28], fcn.00470027
mov dword [eax + 0x2c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax], 0x4d65d0
mov dword [eax + 0x30], ecx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 0xc

Function at 0x42e850
Capabilities:
Create thread
Get thread local storage value

Disassembly:
cmp dword [0x4f7b40], 0
je 0x42e8b8
push esi
push 0xc
call fcn.00470104
mov esi, eax
add esp, 4
mov dword [esi], 0x4282a0
mov dword [esi + 4], edi
cmp dword [0x4f7b40], 0
jne 0x42e87c
xor eax, eax
jmp 0x42e888
mov eax, dword [0x4f7b48]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi + 8], eax
test eax, eax
je 0x42e8ab
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push esi
push 0
push 0x42e780
call fcn.00473050
add esp, 0xc
pop esi
ret
push esi
call fcn.00470027
add esp, 4
xor eax, eax
pop esi
ret
push edi
push 0
push 0x4282a0
call fcn.00473050
add esp, 0xc
ret

Function at 0x42e8d0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4f7b40], 0
je 0x42e925
mov eax, dword [0x4f7b48]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42e925
cmp dword [eax], 1
jbe 0x42e925
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 4]
test eax, eax
je 0x42e925
push 0
push 0x4f8f20
push 0x4f8e44
push 0
push eax
call fcn.004773f4
add esp, 0x14
test eax, eax
je 0x42e925
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 4]
mov byte [ecx], al
mov al, 1
ret
xor al, al
ret

Function at 0x42f780
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x804], eax
mov ecx, dword [esp + 0x80c]
push esi
lea eax, [esp + 0x814]
push eax
push ecx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_wvsprintfW]
mov esi, eax
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [0x4fd79c]
lea ecx, [esi + esi]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x808]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0046fdae
add esp, 0x808
ret
Function at 0x42f7f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x474
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x46c], eax
push esi
push edi
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x6a]
push ecx
mov word [esp + 0x6c], ax
call fcn.00476c30
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
add esp, 0xc
push 0x4d4d24
lea edx, [esp + 0x64]
push edx
call esi
push 0x4fddb8
lea eax, [esp + 0x64]
push eax
call esi
push 0x4fddb8
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jbe 0x42f9ae
cmp word [eax*2 + 0x4fddb6], 0x5c
je 0x42f868
push 0x4cb7d0
lea ecx, [esp + 0x64]
push ecx
call esi
push str.crashrpt.exe
lea edx, [esp + 0x64]
push edx
call esi
push 0x4d72ac
lea eax, [esp + 0x64]
push eax
call esi
push 0x4fdbb0
lea ecx, [esp + 0x64]
push ecx
call esi
push 0x4d72ac
lea edx, [esp + 0x64]
push edx
call esi
push str.sogoupy
lea eax, [esp + 0x64]
push eax
call esi
push 0x4d72ac
lea ecx, [esp + 0x64]
push ecx
call esi
push 0x4cc954
lea edx, [esp + 0x64]
push edx
call esi
push 0x4d4d24
lea eax, [esp + 0x64]
push eax
call esi
push 0x5c
push 0x4fd9a8
call fcn.0047030c
mov edi, eax
add esp, 8
test edi, edi
je 0x42f900
push 0x4d72b4
lea ecx, [esp + 0x64]
push ecx
call esi
add edi, 2
push edi
lea edx, [esp + 0x64]
push edx
call esi
push 0x4d4d24
lea eax, [esp + 0x64]
push eax
call esi
push 0x5c
push 0x4fd7a0
call fcn.0047030c
mov edi, eax
add esp, 8
test edi, edi
je 0x42f938
push 0x4d72b4
lea ecx, [esp + 0x64]
push ecx
call esi
add edi, 2
push edi
lea edx, [esp + 0x64]
push edx
call esi
push 0x4d4d24
lea eax, [esp + 0x64]
push eax
call esi
push 0x44
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00476c30
xor eax, eax
add esp, 0xc
mov dword [esp + 0x18], 0x44
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call fcn.00419890
add eax, 0xc
cmp dword [eax + 4], 0
jne 0x42f975
xor eax, eax
jmp 0x42f989
cmp byte [eax + 0x11c], 0
je 0x42f983
add eax, 0xc
jmp 0x42f986
mov eax, dword [eax + 8]
add eax, 4
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x80]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 0x474]
pop edi
pop esi
xor ecx, esp
call fcn.0046fdae
add esp, 0x474
ret

Function at 0x42fca0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp dword [0x4fd79c], 0
je 0x42fcfc
cmp dword [0x4fdfc8], 0
je 0x42fcfc
push esi
push str.extra:_n
call fcn.0042f780
mov edx, dword [0x4fdfc8]
mov eax, edx
add esp, 4
mov dword [esp + 4], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42fcd4
sub eax, esi
push 0
sar eax, 1
lea ecx, [esp + 8]
push ecx
mov ecx, dword [0x4fd79c]
add eax, eax
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ecx
ret
Function at 0x432b60
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4f7b40], 0
je 0x432bb5
mov eax, dword [0x4f7b48]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x432bb5
cmp dword [eax], 4
jbe 0x432bb5
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x432bb5
push 0
push 0x4f8ff4
push 0x4f8e44
push 0
push eax
call fcn.004773f4
add esp, 0x14
test eax, eax
je 0x432bb5
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 4]
mov dword [ecx], eax
mov al, 1
ret
xor al, al
ret

Function at 0x432bc0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4f7b40], 0
push esi
push edi
mov esi, eax
je 0x432c09
mov eax, dword [0x4f7b48]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call edi
test eax, eax
je 0x432c09
cmp dword [eax], 4
jbe 0x432c09
mov ecx, dword [eax + 8]
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x432c36
push 8
call fcn.004706a8
add esp, 4
test eax, eax
je 0x432c0e
mov dword [eax + 4], esi
mov dword [eax], 0x4d75bc
mov esi, eax
jmp 0x432c10
pop edi
xor al, al
pop esi
ret
xor esi, esi
cmp dword [0x4f7b40], 0
je 0x432c3e
mov edx, dword [0x4f7b48]
push edx
call edi
test eax, eax
je 0x432c3e
cmp dword [eax], 4
jbe 0x432c3e
mov eax, dword [eax + 8]
mov dword [eax + 0x10], esi
pop edi
mov al, 1
pop esi
ret
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
push esi
call eax
pop edi
mov al, 1
pop esi
ret
Function at 0x432f20
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov ebx, eax
push 0x4d3dec
lea eax, [esp + 0x18]
push ebx
xor ebp, ebp
push eax
mov dword [esp + 0x20], ebp
call fcn.004707d3
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebp
je 0x43309f
mov edi, dword [esp + 0x24]
push eax
push 0xc
lea esi, [edi + 0x214]
push 1
push esi
call fcn.00475584
add esp, 0x10
cmp dword [esi], 0x43555450
jne 0x433092
cmp dword [edi + 0x218], 1
jg 0x433092
cmp dword [edi + 0x21c], 0xffff
jg 0x433092
push 0x103
push ebx
lea ecx, [edi + 0xc]
push 0x104
push ecx
mov byte [edi + 0x238], 1
call fcn.004710fb
add esp, 0x10
cmp dword [edi + 0x21c], ebp
jle 0x433079
add edi, 0x220
push 0xc
call fcn.004706a8
mov edx, dword [esp + 0x18]
add esp, 4
push edx
mov esi, eax
push 4
lea eax, [esp + 0x20]
push 1
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 0
call fcn.00475584
mov eax, dword [esp + 0x28]
shr eax, 1
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046fd28
add esp, 0x14
mov dword [esi], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
push edx
push 1
push eax
call fcn.00475584
mov eax, dword [esp + 0x28]
mov ecx, dword [esi]
shr eax, 1
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [esp + 0x24]
push eax
push 4
lea ebx, [esi + 8]
push 1
push ebx
call fcn.00475584
mov ecx, dword [ebx]
push ecx
call fcn.0046fd28
add esp, 0x24
mov dword [esi + 4], eax
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx]
push edx
push ecx
push 1
push eax
call fcn.00475584
add esp, 0x10
lea ebx, [esp + 0x1c]
call fcn.00433460
mov edx, dword [esp + 0x24]
inc ebp
cmp ebp, dword [edx + 0x21c]
jl 0x432fbf
mov eax, dword [esp + 0x14]
push eax
call fcn.00471059
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00471059
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 4
Function at 0x4330b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
cmp byte [esi + 0x238], 0
jne 0x4330c2
xor al, al
add esp, 8
ret
push ebp
push 0x4cb348
lea eax, [esi + 0xc]
push eax
lea ecx, [esp + 0xc]
xor ebp, ebp
push ecx
mov dword [esp + 0x10], ebp
call fcn.004707d3
mov ecx, dword [esp + 0x10]
add esp, 0xc
cmp ecx, ebp
jne 0x4330ee
xor al, al
pop ebp
add esp, 8
ret
lea eax, [esi + 0x214]
mov dword [eax], 0x43555450
mov dword [esi + 0x218], 1
mov edx, dword [esi + 0x230]
sub edx, dword [esi + 0x22c]
push ecx
push 0xc
sar edx, 2
push 1
push eax
mov dword [esi + 0x21c], edx
call fcn.00470f60
add esp, 0x10
cmp dword [esi + 0x21c], ebp
jle 0x4331da
push ebx
push edi
jmp 0x433140
mov eax, dword [esi + 0x230]
sub eax, dword [esi + 0x22c]
sar eax, 2
cmp ebp, eax
jb 0x433158
call fcn.00470dee
mov ecx, dword [esi + 0x22c]
mov edi, dword [ecx + ebp*4]
mov eax, dword [edi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x433166
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
mov eax, dword [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x18]
push 1
push ecx
mov dword [esp + 0x20], edx
call fcn.00470f60
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [edi]
push edx
push eax
push 1
push ecx
call fcn.00470f60
mov edx, dword [esp + 0x2c]
push edx
push 4
lea ebx, [edi + 8]
push 1
push ebx
call fcn.00470f60
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebx]
mov edx, dword [edi + 4]
push eax
push ecx
push 1
push edx
call fcn.00470f60
inc ebp
add esp, 0x40
cmp ebp, dword [esi + 0x21c]
jl 0x433140
pop edi
pop ebx
mov eax, dword [esp + 4]
push eax
call fcn.00471059
add esp, 4
mov al, 1
pop ebp
add esp, 8
ret

Function at 0x433260
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov ebx, eax
push ebp
call fcn.004331f0
test eax, eax
je 0x43327f
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x18]
push 0x4d3dec
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], 0
call fcn.004707d3
mov eax, dword [esp + 0x28]
add esp, 0xc
test eax, eax
je 0x433275
push 2
push 0
push eax
call fcn.00475836
mov edx, dword [esp + 0x28]
add esp, 0xc
push edx
call fcn.0047573e
add esp, 4
push 0
mov esi, eax
mov eax, dword [esp + 0x20]
push 0
push eax
call fcn.00475836
add esp, 0xc
push 0xc
call fcn.004706a8
add esp, 4
mov edi, eax
push ebp
mov dword [esp + 0x1c], edi
call fcn.0047205c
add esp, 4
mov dword [edi], eax
push esi
mov dword [edi + 8], esi
call fcn.0046fd28
add esp, 4
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x1c]
push ecx
push esi
push 1
push eax
call fcn.00475584
mov edx, dword [esp + 0x2c]
push edx
call fcn.00471059
lea edi, [ebx + 0x220]
add esp, 0x14
lea ebx, [esp + 0x18]
call fcn.00433460
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 8
Function at 0x433340
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00476c30
mov edx, dword [edi + 0x230]
sub edx, dword [edi + 0x22c]
add esp, 0xc
xor ebx, ebx
test edx, 0xfffffffc
jle 0x433448
push esi
lea ebx, [ebx]
mov eax, dword [edi + 0x230]
sub eax, dword [edi + 0x22c]
sar eax, 2
cmp ebx, eax
jb 0x4333a8
call fcn.00470dee
mov ecx, dword [edi + 0x22c]
mov esi, dword [ecx + ebx*4]
push str.D:_tempcomponet_themedefault
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.0047149d
push 0x4cb7d0
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.00471f8e
mov ecx, dword [esi]
push ecx
lea edx, [esp + 0x28]
push 0x104
push edx
call fcn.00471f8e
push 0x4d75cc
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], 0
call fcn.004707d3
mov eax, dword [esp + 0x38]
add esp, 0x30
test eax, eax
je 0x43342f
mov edx, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push 1
push edx
push eax
call fcn.00470f60
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00471059
add esp, 0x14
mov edx, dword [edi + 0x230]
sub edx, dword [edi + 0x22c]
inc ebx
sar edx, 2
cmp ebx, edx
jl 0x433390
pop esi
mov ecx, dword [esp + 0x210]
pop ebx
xor ecx, esp
mov al, 1
call fcn.0046fdae
add esp, 0x210
ret