joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4087b0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x78
push 0xffffffffffffffff
push 0x430d51
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x444170]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x24]
push eax
call fcn.004089ab
pop ecx
xor ebx, ebx
mov cl, byte [eax + 4]
mov esi, dword [eax]
mov byte [ebp + 0xb], cl
mov byte [eax + 4], bl
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x28], cl
mov dword [ebp - 4], 1
cmp byte [ebp - 0x20], bl
je 0x408818
push dword [ebp - 0x24]
mov byte [ebp - 0x20], bl
call fcn.00407ff6
pop ecx
lea eax, [ebp]
mov byte [ebp - 4], bl
push eax
push ebx
push ebx
push 2
push esi
mov dword [ebp], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [ebp]
mov edi, ebx
mov dword [ebp - 0x10], eax
mov ecx, ebx
mov dword [ebp - 0x1c], edi
mov edx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp + 4], ecx
test eax, eax
je 0x40888d
cmp eax, 0x7fffffff
ja 0x40893c
push eax
cmp eax, 0x1000
jb 0x408863
call fcn.004013a8
jmp 0x408868
call fcn.004100ac
mov edi, eax
mov eax, dword [ebp - 0x10]
add eax, edi
mov dword [ebp - 0x1c], edi
pop ecx
push eax
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
call fcn.00408364
mov edx, dword [ebp - 0x10]
pop ecx
pop ecx
mov dword [ebp - 0x18], edx
mov ecx, edi
mov dword [ebp + 4], edi
lea eax, [ebp]
mov byte [ebp - 4], 2
push eax
sub edx, ecx
push edx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push 2
push esi
call edi
test eax, eax
je 0x408941
lea eax, [ebp + 0xc]
push eax
call fcn.004085e9
mov edi, dword [ebp + 4]
pop ecx
cmp dword [edi], ebx
jbe 0x4088e1
lea eax, [edi + 4]
mov dword [ebp + 4], eax
push dword [eax]
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40891c
mov eax, dword [ebp + 4]
inc ebx
add eax, 8
mov dword [ebp + 4], eax
cmp ebx, dword [edi]
jb 0x4088c3
lea ecx, [ebp - 0x1c]
call fcn.004030c9
cmp byte [ebp + 0xb], 0
mov dword [ebp - 4], 6
je 0x4088fd
push esi
call fcn.00407ff6
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.004100ef
add ebp, 0x78
leave
ret
lea ecx, [ebp - 0x1c]
call fcn.004030c9
cmp byte [ebp + 0xb], 0
mov dword [ebp - 4], 5
je 0x408938
push esi
call fcn.00407ff6
pop ecx
mov al, 1
jmp 0x4088ff
call fcn.004031bb
push str.GetTokenInformation_TokenGroup__failed
lea ecx, [ebp - 0xdc]
call fcn.00401fa7
push 0x4325e4
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x38]
call fcn.00407cab
mov esi, eax
push 0xb1
push str.security::isUserAdmin
push 0x432f78
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.00401e55
push eax
lea eax, [ebp + 0x50]
push esi
push eax
call fcn.004019ec
add esp, 0xc
lea eax, [ebp + 0x50]
push 0x441144
push eax
call fcn.00413032
int3
Function at 0x409488
Capabilities:
Get common file path

Disassembly:
push 0x38
mov eax, 0x430eff
call fcn.00410162
mov eax, dword [ebp + 8]
mov edi, 0x104
push edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], eax
call fcn.004100ac
mov ebx, eax
mov dword [ebp - 0x40], ebx
lea esi, [ebx + 0x104]
push esi
push ebx
mov dword [ebp - 0x38], esi
call fcn.00408364
add esp, 0xc
mov dword [ebp - 0x3c], esi
and dword [ebp - 4], 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, ebx
cmp eax, 0x104
jbe 0x4094fa
lea ecx, [ebp - 0x2d]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.004082b9
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x40]
sub eax, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [ebp - 0x38]
mov edi, ebx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00401d56
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
push ebx
mov byte [ebp - 4], 1
call fcn.0040d754
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
call fcn.0040315c
test edi, edi
je 0x409550
sub esi, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], esi
cmp esi, 0x1000
jb 0x409547
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00402b91
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x2c]
pop ecx
pop ecx
push esi
push edi
call fcn.004100dc
pop ecx
pop ecx
mov eax, ebx
call fcn.00410111
ret

Function at 0x40998a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x24
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.00413460
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x24], 9
sete al
leave
ret
Function at 0x40b6a2
Capabilities:
Copy file

Disassembly:
push 0x184
mov eax, 0x4311fd
call fcn.00410162
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
mov bl, byte [ebp + 0x10]
mov edi, dword [ebp + 8]
push esi
push eax
mov byte [ebp - 0x50], bl
call fcn.0040c7c8
and dword [ebp - 4], 0
push 0
push eax
call fcn.0040ba54
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
add esp, 0x10
call fcn.0040315c
cmp dword [esi + 0x14], 0x10
mov edx, esi
jb 0x40b6ec
mov edx, dword [esi]
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x40b6f6
mov ecx, dword [edi]
movzx eax, bl
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
push eax
push edx
push ecx
call ebx
test eax, eax
je 0x40b7d4
push 0
call fcn.0040e92a
mov ecx, eax
call fcn.0040eb9b
test al, al
je 0x40b7ce
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x54], esp
push esi
call fcn.00401d22
sub esp, 0x18
mov dword [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x50], esp
push edi
call fcn.00401d22
push 1
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 8
call fcn.00401c37
lea eax, [ebp - 0xf8]
mov byte [ebp - 4], 9
push str.Copied__
push eax
call fcn.00401187
pop ecx
pop ecx
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 0xa
call fcn.00401356
mov esi, eax
push str.__file_to__
push esi
call fcn.00401187
pop ecx
pop ecx
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.00401356
mov esi, eax
push 0x432d90
push esi
call fcn.00401187
pop ecx
pop ecx
push esi
push str.FileUtils::copyFile
push 0x212
push 0x434798
push 0
call fcn.0040e92a
mov ecx, eax
call fcn.00403d5c
lea ecx, [ebp - 0xf8]
call fcn.004028bb
call fcn.00410111
ret
push 0x20f
push str.FileUtils::copyFile
push 0x434798
lea ecx, [ebp - 0x60]
call fcn.00401e55
push eax
push 0x4325e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x432608
push dword [ebp - 0x50]
mov ebx, 0x43480c
push ebx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x50], esp
push esi
call fcn.00401d22
push ebx
sub esp, 0x18
mov dword [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x54], esp
push edi
call fcn.00401d22
lea ecx, [ebp - 0x190]
mov byte [ebp - 4], 2
call fcn.0040200b
mov byte [ebp - 4], 3
push str.CopyFile_
mov ecx, eax
call fcn.00401172
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00401356
mov ecx, eax
call fcn.00401172
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00401356
mov ecx, eax
call fcn.00401172
mov ecx, eax
call fcn.00409a5a
mov ecx, eax
call fcn.00401172
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407cab
push eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 6
push eax
call fcn.004019ec
add esp, 0xc
lea eax, [ebp - 0x4c]
push 0x441144
push eax
call fcn.00413032
int3
Function at 0x40b8a5
Capabilities:
Create directory

Disassembly:
push 0xe8
mov eax, 0x43126a
call fcn.00410162
mov esi, dword [ebp + 0x20]
mov edi, dword [ebp + 0x24]
and dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmovae eax, dword [ebp + 8]
push esi
push eax
call ebx
test eax, eax
je 0x40b99d
xor ebx, ebx
push ebx
call fcn.0040e92a
mov ecx, eax
call fcn.0040eb9b
test al, al
je 0x40b974
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
call fcn.00401d22
push 1
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 1
call fcn.00401c37
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 2
push 0x434810
push eax
call fcn.00401187
pop ecx
pop ecx
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 3
call fcn.00401356
mov esi, eax
push 0x4348c8
push esi
call fcn.00401187
pop ecx
pop ecx
push esi
push 0x4348d4
push 0x1e8
push 0x434798
push ebx
call fcn.0040e92a
mov ecx, eax
call fcn.00403d5c
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], bl
call fcn.004028bb
test edi, edi
je 0x40b9b7
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040d754
pop ecx
pop ecx
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00405058
lea ecx, [ebp - 0x28]
call fcn.0040315c
jmp 0x40b9b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test esi, esi
jne 0x40b9c5
lea eax, [ebp + 8]
push eax
call fcn.0040ccf1
pop ecx
test al, al
je 0x40b9c5
lea ecx, [ebp + 8]
call fcn.0040315c
call fcn.00410111
ret
push 0x1f1
push 0x4348d4
push 0x434798
lea ecx, [ebp - 0x5c]
call fcn.00401e55
push eax
push 0x4325e4
push edi
push ebx
push 0x432608
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
call fcn.00401d22
lea ecx, [ebp - 0xf4]
mov byte [ebp - 4], 5
call fcn.0040200b
mov byte [ebp - 4], 6
push 0x4325f4
mov ecx, eax
call fcn.00401172
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00401356
mov ecx, eax
call fcn.00401172
push eax
lea ecx, [ebp - 0x1c]
call fcn.00407cab
push eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 8
push eax
call fcn.004019ec
add esp, 0xc
lea eax, [ebp - 0x4c]
push 0x441144
push eax
call fcn.00413032
int3
Function at 0x40c049
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x40c061
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne cl
xor ebx, ebx
mov byte [ebp + 0xb], cl
test eax, eax
je 0x40c0f5
push ebx
call fcn.0040e92a
mov ecx, eax
call fcn.0040eb9b
test al, al
je 0x40c0f2
push 1
lea ecx, [ebp - 0x9c]
call fcn.00401c37
lea eax, [ebp - 0x9c]
push 0x4349e0
push eax
call fcn.00401187
sub esp, 0x10
mov ecx, esp
push esi
call fcn.00401d22
lea ecx, [ebp - 0x9c]
call fcn.00401356
mov esi, eax
push 0x4348c8
push esi
call fcn.00401187
pop ecx
pop ecx
push esi
push 0x434a8c
push 0x2ab
push 0x434798
push ebx
call fcn.0040e92a
mov ecx, eax
call fcn.00403d5c
lea ecx, [ebp - 0x9c]
call fcn.004028bb
mov cl, byte [ebp + 0xb]
test cl, cl
jne 0x40c10c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040d41f
add esp, 4
test al, al
je 0x40c10e
mov bl, 1
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x40c271
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0xa8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xbc]
push edi
push 0x435b05
call fcn.0040c45a
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov bl, al
pop ecx
pop ecx
call ebp
test bl, bl
jne 0x40c44b
xor ebx, ebx
cmp eax, 5
jne 0x40c43c
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x40c2b6
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 5
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp ebx, 0xffffffff
jne 0x40c2d3
xor al, al
jmp 0x40c44f
test bl, 1
je 0x40c43a
and ebx, 0xfffffffe
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x40c2e9
mov eax, dword [edi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push eax
call ebx
test eax, eax
je 0x40c38b
xor ebx, ebx
push ebx
call fcn.0040e92a
mov ecx, eax
call fcn.0040eb9b
test al, al
je 0x40c371
push 1
lea ecx, [esp + 0x24]
call fcn.00401c37
lea eax, [esp + 0x20]
push 0x434a20
push eax
call fcn.00401187
sub esp, 0x10
mov ecx, esp
push edi
call fcn.00401d22
lea ecx, [esp + 0x38]
call fcn.00401356
mov esi, eax
push 0x434824
push esi
call fcn.00401187
pop ecx
pop ecx
push esi
push 0x4349bc
push 0x290
push 0x434798
push ebx
call fcn.0040e92a
mov ecx, eax
call fcn.00403d5c
lea ecx, [esp + 0x20]
call fcn.004028bb
push edi
push 0x435b05
call fcn.0040c45a
pop ecx
pop ecx
test al, al
jne 0x40c44b
jmp 0x40c43c
push 2
call fcn.0040e92a
mov ecx, eax
call fcn.0040eb9b
test al, al
je 0x40c432
push 1
lea ecx, [esp + 0x24]
call fcn.00401c37
lea eax, [esp + 0x20]
push 0x434a40
push eax
call fcn.00401187
sub esp, 0x10
mov ecx, esp
push edi
call fcn.00401d22
lea ecx, [esp + 0x38]
call fcn.00401356
mov esi, eax
push 0x434a68
push esi
call fcn.00401187
pop ecx
pop ecx
push 0x4325e4
call ebp
push eax
push ebx
push esi
lea ecx, [esp + 0x24]
call fcn.00407cab
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
push eax
push 0x4349bc
push 0x296
push 0x434798
push 2
call fcn.0040e92a
mov ecx, eax
call fcn.00403d18
lea eax, [esp + 0x18]
mov dword [esp + 0x14], vtable.std::exception.0
push eax
call fcn.00413013
pop ecx
lea ecx, [esp + 0x20]
call fcn.004028bb
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
call ebp
push eax
call fcn.0040d41f
add esp, 4
test al, al
je 0x40c44d
mov bl, 1
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret
Function at 0x40c45a
Capabilities:
Delete file

Disassembly:
push 0x98
mov eax, 0x431462
call fcn.0041012f
mov esi, dword [ebp + 0xc]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x40c476
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40c518
push 0
call fcn.0040e92a
mov ecx, eax
call fcn.0040eb9b
test al, al
je 0x40c514
sub esp, 0x18
mov ecx, esp
mov dword [ebp + 0xc], esp
push esi
call fcn.00401d22
and dword [ebp - 4], 0
lea ecx, [ebp - 0xa4]
push 1
call fcn.00401c37
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 1
push 0x4349e0
push eax
call fcn.00401187
pop ecx
pop ecx
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 2
call fcn.00401356
mov esi, eax
push 0x434824
push esi
call fcn.00401187
pop ecx
pop ecx
push esi
push 0x4349ec
push 0x278
push 0x434798
push 0
call fcn.0040e92a
mov ecx, eax
call fcn.00403d5c
lea ecx, [ebp - 0xa4]
call fcn.004028bb
mov al, 1
jmp 0x40c527
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040d41f
add esp, 4
call fcn.004100fd
ret

Function at 0x40cbc2
Capabilities:
Get disk information

Disassembly:
push 0x54
mov eax, 0x4315ac
call fcn.00410162
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x40]
and dword [ebp - 0x60], 0
push 0x43481c
call fcn.00401d56
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push 0
xor ebx, ebx
push eax
inc ebx
push edi
mov dword [ebp - 0x60], ebx
call fcn.004070ca
add esp, 0xc
lea esi, [edi + 0x10]
test al, al
je 0x40cc09
mov byte [ebp - 0x59], bl
cmp dword [esi], ebx
jne 0x40cc0d
mov byte [ebp - 0x59], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040315c
cmp byte [ebp - 0x59], 0
jne 0x40ccbe
push 0x434820
lea ecx, [ebp - 0x40]
call fcn.00401d56
lea ecx, [ebp - 0x40]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x60], eax
call fcn.0040315c
mov eax, dword [ebp - 0x60]
cmp dword [esi], eax
jae 0x40cc4a
push 3
pop eax
jmp 0x40ccc0
lea ecx, [ebp - 0x59]
push ecx
push eax
push 0
push edi
lea ecx, [ebp - 0x58]
call fcn.00405667
push 0x43481c
lea eax, [ebp - 0x58]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00408a94
add esp, 0xc
lea ecx, [ebp - 0x58]
call fcn.0040315c
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
sub eax, 0
je 0x40ccb3
sub eax, 1
je 0x40ccb3
sub eax, 1
je 0x40ccaf
sub eax, 1
je 0x40ccaf
sub eax, 1
je 0x40ccb6
sub eax, 1
je 0x40ccb3
sub eax, 1
jne 0x40ccb3
xor ebx, ebx
jmp 0x40ccb6
push 2
pop ebx
lea ecx, [ebp - 0x28]
call fcn.0040315c
mov eax, ebx
call fcn.00410111
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 0x10
jb 0x40ccfd
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40cd10
test al, 0x10
je 0x40cd10
mov al, 1
ret
xor al, al
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 0x10
jb 0x40cd1f
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
ret
Function at 0x40df1c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x10c
mov eax, 0x4318ab
call fcn.00410162
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
call fcn.0040de4f
mov ebx, eax
test ebx, ebx
je 0x40e009
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push dword [esi + 0x38]
call edi
test eax, eax
jne 0x40dfbf
push 0x434cb4
lea ecx, [ebp - 0x28]
call fcn.00401d56
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.0040de6d
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 5
call fcn.00408f44
push 0x4325e4
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x80]
call fcn.00407cab
mov esi, eax
push 0x46
push 0x434c10
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x74]
push 0x434c28
jmp 0x40e073
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [esi + 0x34], 6
mov edi, eax
jne 0x40dff0
mov edx, dword [esi + 0x18]
mov ecx, edi
and edx, 0xf
jbe 0x40dfe6
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
sub edx, 1
jne 0x40dfd8
movzx eax, word [ecx]
lea edi, [ecx + 2]
add eax, eax
jmp 0x40dffa
push ebx
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x68]
mov dword [ecx], eax
mov eax, edi
call fcn.00410111
ret 4
push 0x434c9c
lea ecx, [ebp - 0x28]
call fcn.00401d56
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.0040de6d
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.00408f44
push 0x4325e4
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [sym.imp.KERNEL32.dll_FindResourceA]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x74]
call fcn.00407cab
mov esi, eax
push 0x41
push 0x434c10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
push 0x434c28
call fcn.00401e55
push eax
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.004019ec
add esp, 0xc
lea eax, [ebp - 0x4c]
push 0x441144
push eax
call fcn.00413032
int3

Function at 0x410eac
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00419b99
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x419e40
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x419e40
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x419df5
jg 0x419d2d
test eax, eax
je 0x419deb
push 1
push 0x1000
call fcn.004218b0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x419d50
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x419de2
push 0x8000
push ebx
call fcn.0041d11b
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x419d79
jg 0x419d74
cmp ecx, 0x1000
jb 0x419d79
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041a9bd
add esp, 0x10
cmp eax, 0xffffffff
je 0x419dbe
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x419d74
jl 0x419da5
test ecx, ecx
jne 0x419d66
push dword [ebp - 0xc]
push ebx
call fcn.0041d11b
push esi
call fcn.0042038b
add esp, 0xc
xor ebx, ebx
jmp 0x419e4e
cmp byte [edi + 0x24], 0
je 0x419dd5
cmp dword [edi + 0x20], 5
jne 0x419dd5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x419de0
mov ebx, dword [edi + 0x18]
jmp 0x419de2
xor ebx, ebx
push esi
call fcn.0042038b
pop ecx
jmp 0x419e4e
test ecx, ecx
jg 0x419db7
jl 0x419df5
test eax, eax
jae 0x419db7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00424914
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x419e15
cmp byte [edi + 0x1c], 0
je 0x419db7
jmp 0x419e46
push ebx
call fcn.004250f4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x419db7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x419e4e
cmp byte [edi + 0x1c], 0
je 0x419e4b
mov ebx, dword [edi + 0x18]
jmp 0x419e4e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00424914
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422c9e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x438e04
push 0x438dfc
push 0x436804
push 0x1f
call fcn.00422b09
mov esi, eax
add esp, 0x10
test esi, esi
je 0x422cd2
push dword [ebp + 8]
mov ecx, esi
call dword [0x4321e8]
call esi
jmp 0x422cd8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x422d1c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x438e14
push 0x438e0c
push 0x436828
push 0x21
call fcn.00422b09
mov esi, eax
add esp, 0x10
test esi, esi
je 0x422d53
push dword [ebp + 8]
mov ecx, esi
call dword [0x4321e8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x422d5b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x438e1c
push 0x438e14
push 0x43683c
push 0x22
call fcn.00422b09
mov esi, eax
add esp, 0x10
test esi, esi
je 0x422d95
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4321e8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]