joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4033c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x204
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
call fcn.0041ad30
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x218]
and eax, 0xffff
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x403493
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x403493
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
jbe 0x403493
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x403493
mov ecx, dword [esp + 0x21c]
push 0x180
push 0x8302
push ecx
call fcn.00406d16
mov edi, eax
add esp, 0xc
test edi, edi
jl 0x403493
push esi
push ebx
push edi
call fcn.00406b26
add esp, 0xc
cmp eax, esi
je 0x403485
mov edx, dword [esp + 0x21c]
lea eax, [esp + 0x14]
push edx
push 0x42523c
push eax
call fcn.00406607
add esp, 0xc
lea ecx, [esp + 0x14]
push 0x10
push 0x424690
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00416905
jmp 0x40348a
mov ebp, 1
push edi
call fcn.00406a46
add esp, 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x204
ret 8

Function at 0x4034b0
Capabilities:
Copy file

Disassembly:
push esi
push 0x4290b8
mov esi, ecx
push 0x3f2
call fcn.00417a29
mov al, byte [0x4291c0]
test al, al
jne 0x403516
push str.RCDATA
push 0x3f1
mov ecx, esi
call fcn.00417a29
mov eax, dword [esp + 8]
push 0x4290b8
push eax
mov ecx, esi
call fcn.004033c0
test eax, eax
jne 0x4035bf
push 0x4290b8
push 0x4290b8
push str.Copying_to:_n_s_nThe_file_could_not_be_copied._n_no_Is__s_in_use__no_Is_your_disk_full__n
push 0x4292c8
call fcn.00406607
add esp, 0x10
jmp 0x4035a6
push 0x4291c0
push 0x3f1
mov ecx, esi
call fcn.00417a29
push 0
push 0x4291c0
call fcn.00413d62
add esp, 8
test eax, eax
je 0x403553
push 0x4291c0
push str.Source_File:_n_s_nis_missing_
push 0x4292c8
call fcn.00406607
add esp, 0xc
jmp 0x4035a6
push 0x180
push 0x4290b8
call fcn.0040659f
push 0x4290b8
call fcn.00406575
add esp, 0xc
push 0
push 0x4290b8
push 0x4291c0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4035bf
push 0x4290b8
push 0x4290b8
push 0x4291c0
push str.Copying_from:_n_s_nCopying_to:_n_s_nThe_file_could_not_be_copied._n_no_Is__s_in_use__no_Is_your_disk_full__no_You_may_have_specified_an_invalid_destination._n
push 0x4292c8
call fcn.00406607
add esp, 0x14
push 0x10
push 0x4246d4
push 0x4292c8
mov ecx, esi
call fcn.00416905
xor eax, eax
pop esi
ret 4
mov eax, 1
pop esi
ret 4
Function at 0x403900
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x244
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0x4246a4
push eax
push 0x425400
push ecx
call fcn.00406607
lea ebx, [esp + eax + 0x20]
mov edi, 0x4253fc
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x114]
mov edx, ecx
mov esi, edi
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
mov eax, dword [esp + 0x258]
xor edx, edx
cmp ebp, 0xffffffff
setne dl
push 0x5c
push eax
mov esi, edx
call fcn.004065e0
add esp, 8
cmp esi, 1
jne 0x403a28
test eax, eax
je 0x403a28
lea edi, [esp + 0x140]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov al, byte [esp + 0x114]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test al, 0x10
rep movsb byte es:[edi], byte [esi]
je 0x4039dd
cmp byte [esp + 0x140], 0x2e
jne 0x4039ce
mov esi, 1
jmp 0x4039ef
lea eax, [esp + 0x10]
push eax
call fcn.00403900
add esp, 4
jmp 0x4039e8
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
cmp esi, 1
jne 0x403a03
lea edx, [esp + 0x114]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x40398e
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 1
jne 0x403a28
mov eax, dword [esp + 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x244
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x244
ret
Function at 0x404910
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [esp + 0x22c]
push ebx
mov ebx, dword [esp + 0x21c]
push ebp
push esi
push edi
push ebx
push 0x4246a4
push eax
lea ecx, [esp + 0x12c]
push 0x424bc4
push ecx
mov dword [esp + 0x28], 1
xor esi, esi
mov dword [esp + 0x2c], 0x104
call fcn.00406607
add esp, 0x14
lea edx, [esp + 0x10]
lea eax, [esp + 0x120]
push edx
push 0xf003f
push esi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, dword [esp + 0x22c]
test eax, eax
jne 0x4049e3
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push esi
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4049a4
mov esi, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 1
jne 0x4049e3
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4049e3
mov eax, dword [esp + 0x238]
mov edi, dword [esp + 0x234]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edi
call fcn.00404750
add esp, 0xc
jmp 0x404a20
mov eax, dword [esp + 0x230]
test eax, eax
je 0x404a16
mov edx, dword [esp + 0x238]
mov edi, dword [esp + 0x234]
push edx
push eax
push edi
call fcn.00404750
push 0x4241e4
push edi
push ebp
push ebx
call fcn.00404a40
add esp, 0x1c
jmp 0x404a20
mov edi, dword [esp + 0x234]
mov byte [edi], 0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x214
ret
Function at 0x404a40
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
mov eax, dword [0x429f30]
sub esp, 0x210
push ebx
push ebp
push esi
push edi
mov edi, 1
xor ebp, ebp
cmp eax, edi
jne 0x404a6f
push 0
push 0x14
call fcn.00404840
mov eax, dword [0x429f30]
add esp, 8
cmp eax, edi
je 0x404a5a
mov ebx, dword [esp + 0x228]
mov dword [0x429f30], edi
test ebx, ebx
jne 0x404ae3
mov edi, dword [esp + 0x230]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push ebx
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404bcf
mov eax, dword [esp + 0x224]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x404bbf
mov esi, dword [esp + 0x22c]
test esi, esi
jne 0x404b53
mov eax, dword [esp + 0x224]
mov ecx, dword [esp + 0x230]
push eax
push 0x4246a4
push ecx
lea edx, [esp + 0x24]
push 0x424bc4
push edx
call fcn.00406607
add esp, 0x14
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0xf003f
push esi
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404bcf
mov edx, dword [esp + 0x10]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, edi
jmp 0x404bcf
mov ecx, dword [esp + 0x224]
mov edx, dword [esp + 0x230]
push ecx
push 0x4246a4
push edx
lea eax, [esp + 0x24]
push 0x424bc4
push eax
call fcn.00406607
add esp, 0x14
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404bcf
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x14]
push esi
push 1
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, 1
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword [0x429f30], 0
pop ebx
add esp, 0x210
ret

Function at 0x404d80
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x18]
push 0
push ebx
push edi
push eax
mov esi, 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x404db3
push edi
push ebx
call fcn.00404d20
add esp, 8
test eax, eax
jne 0x404db3
xor esi, esi
push edi
call fcn.004047c0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x405010
Capabilities:
Create directory

Disassembly:
sub esp, 0x40
xor eax, eax
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 7
mov esi, str.Unable_to_read_write_access
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 8
lea edi, [esp + 0x2d]
rep stosd dword es:[edi], eax
xor ebx, ebx
stosw word es:[edi], ax
push ebx
push str.C:32bc
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push str.C:32bc
call fcn.00413d62
add esp, 8
test eax, eax
jne 0x405095
mov edi, str.C:32bc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x54]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov dword [0x429d24], 0x3e9
pop ebx
add esp, 0x40
ret 8
mov edi, str.C:32bc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [0x429d24], eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x4050ea
cmp dword [esp + 0x58], 1
jne 0x4050ea
push 0x40
lea ecx, [esp + 0x14]
push 0x424690
push ecx
mov ecx, ebp
call fcn.00416905
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x40
ret 8

Function at 0x40659f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4065ca
test byte [esp + 8], 0x80
je 0x4065b9
and al, 0xfe
jmp 0x4065bb
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4065db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00408ee0
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x40c679
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4266e0
cmp edx, dword [eax]
je 0x40c69b
add eax, 8
inc ecx
cmp eax, 0x426770
jl 0x40c68c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4266e0]
jne 0x40c7c9
mov eax, dword [0x42c224]
cmp eax, 1
je 0x40c7a3
test eax, eax
jne 0x40c6cc
cmp dword [0x425dec], 1
je 0x40c7a3
cmp edx, 0xfc
je 0x40c7c9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c703
lea eax, [ebp - 0x1a4]
push 0x420744
push eax
call fcn.0040ade0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004086a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40c746
lea eax, [ebp - 0x1a4]
push eax
call fcn.004086a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x420740
push edi
call fcn.0040e510
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x420724
push eax
call fcn.0040ade0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040adf0
lea eax, [ebp - 0xa0]
push 0x420720
push eax
call fcn.0040adf0
push dword [esi + 0x4266e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040adf0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4206f8
push eax
call fcn.0040ee12
add esp, 0x2c
pop edi
jmp 0x40c7c9
lea eax, [ebp + 8]
lea esi, [esi + 0x4266e4]
push 0
push eax
push dword [esi]
call fcn.004086a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4136c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00408720
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41378b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41378b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41373e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x413749
or bh, 8
and edi, 0x8000000
je 0x413764
mov eax, dword [0x42d9bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41378b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413b60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x413b8b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x413baf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x413bca
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x413d82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00408ee0
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x413da5
test byte [esp + 8], 2
je 0x413da5
call fcn.00408f53
mov dword [eax], 0xd
call fcn.00408f5c
mov dword [eax], 5
jmp 0x413d7e
xor eax, eax
ret
Function at 0x4172ce
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 0x417310
call fcn.0041ad30
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x417310
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x417307
xor eax, eax
jmp 0x417318
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041731e
pop edi
pop esi
pop ebx
ret 4

Function at 0x41b99f
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 0x41b9cd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41b9eb
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041b905
jmp 0x41b9eb
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41b9eb
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041b905
test edi, edi
mov eax, edi
jne 0x41b9d5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401090
Capabilities:
Access peb ldr_data
Check mutex on windows
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43f590
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x454654]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x45a98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45a98c
xor ebx, ebx
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
push str.c__s__s__s
lea edi, [esp + 0x24]
mov dword [esp + 0x34], ebx
call fcn.004018c0
mov edx, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x2c]
call fcn.00422160
add esp, 0x14
mov byte [esp + 0x24], 1
call fcn.00401560
lea esi, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.004015c0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401137
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x45b924], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40115e
cmp dword [0x45b924], ebx
jne 0x401163
mov ebx, 1
lea esi, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.004015c0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401194
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x4011b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43f590
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x454654]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x45a98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45a98c
xor ebx, ebx
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
push 0x443b5c
lea edi, [esp + 0x24]
mov dword [esp + 0x34], ebx
call fcn.004018c0
mov edx, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x2c]
call fcn.00422160
add esp, 0x14
mov byte [esp + 0x24], 1
call fcn.00401560
lea esi, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.004015c0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401257
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push 0x443b70
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401450
mov eax, dword [eax]
add esp, 8
push eax
push ebx
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
lea esi, [esp + 0x18]
mov edi, eax
call fcn.004015c0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4012a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp edi, ebx
je 0x4012b7
push edi
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.004015c0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4012e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret