joyce8/EMBER2024-capa huggingface dataset:
Function at 0x300050fd
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x30053c20]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x3001f510
push 2
pop ecx
cmp dword [ebp - 0x88], ecx
jne 0x3001f523
push 4
pop eax
cmp dword [ebp - 0x94], eax
je 0x3001f518
cmp dword [ebp - 0x94], 5
jne 0x30005185
cmp dword [ebp - 0x90], 0
je 0x30005172
xor eax, eax
cmp dword [ebp - 0x90], 1
setne al
add eax, 5
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.300123d7
leave
ret 4
mov dword [esi], 6
jmp 0x30005174
push 4
pop eax
jmp 0x30005176
mov dword [esi], 3
jmp 0x30005174
xor eax, eax
inc eax
cmp dword [ebp - 0x88], eax
jne 0x30005174
cmp dword [ebp - 0x90], 0
je 0x3001f55c
cmp dword [ebp - 0x90], 0xa
je 0x30005172
cmp dword [ebp - 0x90], 0x5a
jne 0x30005174
mov dword [esi], ecx
jmp 0x30005174
and dword [esi], 0
jmp 0x30005174

Function at 0x300054d5
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x218
call fcn.30012f0c
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x30016c32
leave
ret 4
mov ecx, dword [ebp + 8]
call fcn.30012f0c
push eax
push 0x30016c74
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.30023192
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
push 0x30049d54
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.30028332
popaw
imul ebp, dword [ebp + 0x64], 0x206f7420
jae 0x30016ce5
je 0x30016ca2
arpl word [ebp + 0x72], si
jb 0x30016cec
outsb dx, byte [esi]
je 0x30016caa
imul esi, dword fs:[edx + 0x65], 0x726f7463
jns 0x30016cb4
je 0x30016d05
cmp ah, byte [eax]
and eax, 0xd4680053
insb byte es:[edi], dx
add dword [eax], esi
adc al, 0x11
add byte [eax], dh
std
invalid
les ecx, [edx + ebp*2]
inc ebx
push edi
add byte fs:[eax + 0x24], ch
insd dword es:[edi], dx
inc ebx
Function at 0x300056c4
Capabilities:
Accept command line arguments

Disassembly:
push 0x244
mov eax, 0x3004294c
call fcn.30013068
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x30016c9b
xor esi, esi
cmp dword [ebp - 0x10], esi
jle 0x30005726
push dword [edi + esi*4]
lea ecx, [ebp - 0x38]
call fcn.30012c7b
mov ecx, dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
call fcn.30010c6b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.30013250
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x300056f9
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call fcn.300130d6
ret 4
push 0x30016cd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.30023192
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30049d54
lea eax, [ebp - 0x144]
lea edi, [ebp - 0x144]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.30028332
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
insd dword es:[edi], dx
popal
outsb dx, byte [esi]
dec esp
imul ebp, dword [esi + 0x65], 0x72416f54
jbe 0x30016d3d
and byte [esi + 0x61], ah
imul ebp, dword [ebp + 0x64], 0x6d246800
add dword [eax], esi
lea eax, [ebp - 0x24c]
push 0x1c
push eax
call fcn.30022471
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30049d54
lea eax, [ebp - 0x140]
lea edi, [ebp - 0x140]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.30028332
nop
nop
dec ebp
outsd dx, dword [esi]
jne 0x30016d95
and byte gs:[esi + 0x69], ah
insb byte es:[edi], dx
and byte gs:[esi + 0x61], ch
insd dword es:[edi], dx
and byte gs:[ecx + 0x73], ch
and byte [edi + ebp*2 + 0x6e], ch
jb 0x30016d5f
jb 0x30016d5f
je 0x30016da9
popal
outsb dx, byte [esi]
and byte [ebp + 0x41], cl
pop eax
pop edi
push eax
inc ecx
push esp
dec eax
add byte [eax - 0x78], ch
insd dword es:[edi], dx
add dword [eax], esi
jne 0x30016e09
add byte gs:[eax - 0x30], ch
mov dh, 0
add byte [ebx + 0x436a0cc4], al
Function at 0x300081fe
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
or eax, 0xffffffff
cmp dword [ebp + 0xc], ecx
jle 0x3000822e
push esi
mov edx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
mov esi, eax
and esi, 0xff
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x3004fcb8]
inc ecx
cmp ecx, dword [ebp + 0xc]
jl 0x3000820c
pop esi
not eax
pop ebp
ret 8

Function at 0x30009ad7
Capabilities:
Query environment variable

Disassembly:
push 0x234
mov eax, 0x30041d80
call fcn.30013068
mov edi, ecx
lea ecx, [ebp - 0x28]
call fcn.3000b691
and dword [ebp - 4], 0
push 0x104
lea ecx, [ebp - 0x28]
call fcn.3000b6f2
mov ecx, eax
call fcn.30012deb
lea ecx, [ebp - 0x28]
call fcn.3000b6f2
mov esi, dword [eax + 0xc]
lea ecx, [ebp - 0x28]
call fcn.3000b707
mov eax, dword [eax + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push eax
push dword [edi + 8]
call esi
lea ecx, [ebp - 0x28]
mov ebx, eax
call fcn.3000b6f2
cmp ebx, dword [eax + 0xc]
ja 0x3001621f
push ebx
lea ecx, [ebp - 0x28]
call fcn.3000b6f2
mov ecx, eax
call fcn.30012deb
lea ecx, [ebp - 0x28]
call fcn.3000b6f2
mov ebx, dword [eax + 0xc]
lea ecx, [ebp - 0x28]
call fcn.3000b707
Function at 0x3000c88d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x218
push 0x104
call fcn.30012deb
mov ecx, dword [ebp + 8]
call fcn.30012f0c
mov ecx, dword [ebp + 8]
push eax
call fcn.3000c8c7
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x30016a44
leave
ret 4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2b8]
call fcn.30013250
call fcn.3000c84f
ret 0xc
push 0x30016a80
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.30023192
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30049d54
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.30028332
nop
nop
nop
inc ebx
popal
outsb dx, byte [esi]
outsb dx, byte [esi]
outsd dx, dword [esi]
je 0x30016aa7
je 0x30016aab
je 0x30016af2
insd dword es:[edi], dx
jo 0x30016ab0
jo 0x30016af3
je 0x30016afc
add byte [edx], dh
shr cl, 0x94
xchg ebx, eax
invalid
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.30023192
std
invalid
faddp st(6)
add byte [eax], al
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30049d54
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.30028332
nop
nop
nop
popaw
imul ebp, dword [ebp + 0x64], 0x206f7420
insb byte es:[edi], dx
je 0x30016b4d
and byte [ecx + ebp*2 + 0x72], ah
arpl word gs:[edi + ebp*2 + 0x72], si
jns 0x30016af3
add byte [eax + 0x58], ch
add dword [edx], eax
xor byte [ebp - 0x4f77b], cl
jmp [edx + 0x22]
push 0x30020158
lea eax, [ebp - 0x4f8]
push 0x22
push eax
call fcn.30022471
invalid
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30049d54
lea eax, [ebp - 0x3ec]
lea edi, [ebp - 0x3ec]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.30028332
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x30010054
cmp eax, 2
je 0x30010054
push 0x30016b54
push eax
lea eax, [ebp - 0x4f8]
push eax
call fcn.30023192
inc ecx
mov byte [eax], 0
jmp 0x30016b06
Function at 0x3000ce60
Capabilities:
Enumerate files on windows

Disassembly:
push 0x4ec
mov eax, 0x3004288d
call fcn.3000fdda
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x264], eax
call fcn.3000fe10
test al, al
je 0x30016b6c
mov ecx, esi
call fcn.3000fd70
lea ecx, [ebp - 0x2b8]
call fcn.300123e5
and dword [ebp - 4], 0
push edi
lea ecx, [ebp - 0x2b8]
call fcn.300115a9
mov esi, 0x300113cc
push esi
lea ecx, [ebp - 0x290]
call fcn.30012c7b
push 1
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.30011379
mov bl, al
neg bl
sbb bl, bl
lea ecx, [ebp - 0x290]
inc bl
mov byte [ebp - 4], 0
call fcn.30013250
test bl, bl
je 0x3000cf19
push esi
lea ecx, [ebp - 0x290]
call fcn.30012c7b
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 2
call fcn.300115e9
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 0
call fcn.30013250
push dword [ebp - 0x264]
lea ecx, [ebp - 0x2b8]
call fcn.300115e9
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.30012f0c
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x264], eax
je 0x30016ba0
mov ecx, edi
call fcn.30012f0c
push eax
lea ecx, [ebp - 0x2e0]
call fcn.30012c7b
push esi
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.30012c7b
push 1
push eax
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 4
call fcn.30011379
mov bl, al
neg bl
sbb bl, bl
lea ecx, [ebp - 0x290]
inc bl
mov byte [ebp - 4], 3
call fcn.30013250
test bl, bl
je 0x3000cfcd
push esi
lea ecx, [ebp - 0x290]
call fcn.30012c7b
push eax
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 5
call fcn.300115e9
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.30013250
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x290]
call fcn.30012c7b
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 6
call fcn.300115e9
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.30013250
lea eax, [ebp - 0x2e0]
push eax
call fcn.30010863
test al, al
je 0x3000d026
mov ecx, dword [ebp - 0x268]
lea eax, [ebp - 0x2e0]
push eax
call fcn.30010c6b
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 0
call fcn.30013250
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x3000cf52
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2b8]
call fcn.30013250
call fcn.3000c84f
ret 0xc
push 0x30020158
lea eax, [ebp - 0x4f8]
push 0x22
push eax
call fcn.30022471
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30049d54
lea eax, [ebp - 0x3ec]
lea edi, [ebp - 0x3ec]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.30028332
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x3000d05c
cmp eax, 2
je 0x3000d05c
push 0x30016bcc
push eax
lea eax, [ebp - 0x4f8]
push eax
call fcn.30023192
jmp 0x30016b7f
Function at 0x3000d073
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x218
push edi
call fcn.30012f0c
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x3001679a
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
cmp ebx, 5
jne 0x300167cb
push 0x80

Function at 0x3000d5c0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x218
call fcn.30012f0c
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x30016a9c
leave
ret 4
push 0x30016ad8
call dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x3000f049
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push esi
mov esi, ecx
cmp dword [esi + 0x30], 0xffffffff
push edi
je 0x30016701
mov ecx, dword [ebp + 8]
and dword [ebp - 4], 0
call fcn.3000f094
mov edi, eax
push 0
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x30016735
pop edi
pop esi
leave
ret 4
push 0x30016768
lea eax, [ebp - 0x21c]
push 0x15
push eax
call fcn.30022471
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30049d54
lea eax, [ebp - 0x110]
lea edi, [ebp - 0x110]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.30028332
push 0x30016750
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.30023192
jmp 0x30016714

Function at 0x3000fbbb
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
mov edi, ecx
call fcn.3001164b
mov esi, dword [ebp + 0xc]
cmp esi, eax
ja 0x300161e4
mov ecx, edi
call fcn.3001164b
mov ecx, dword [ebp + 0x10]
lea edx, [esi + ecx]
cmp edx, eax
ja 0x300161e4
mov eax, dword [edi + 8]
push ecx
mov ecx, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
call fcn.30012d0c
pop edi
pop esi
leave
ret 0xc
xor eax, eax
push 0x43
pop ecx

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.30012f0c
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x30016a95
shr al, 4
and al, 1
pop ebp
ret 4
xor al, al
jmp 0x3000fe30
Function at 0x3000fe34
Capabilities:
Enumerate files on windows

Disassembly:
mov ecx, dword [ebp - 0x268]
lea eax, [ebp - 0x2e0]
push eax
call fcn.30010c6b
jmp 0x3001001e
push 0x4ec
mov eax, 0x300427f1
call fcn.3000fdda
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x264], eax
call fcn.3000fe10
test al, al
je 0x30016af3
mov ecx, esi
call fcn.3000fd70
lea ecx, [ebp - 0x2b8]
call fcn.300123e5
and dword [ebp - 4], 0
push edi
lea ecx, [ebp - 0x2b8]
call fcn.300115a9
mov esi, 0x300113cc
push esi
lea ecx, [ebp - 0x290]
call fcn.30012c7b
push 1
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.30011379
mov bl, al
neg bl
sbb bl, bl
lea ecx, [ebp - 0x290]
inc bl
mov byte [ebp - 4], 0
call fcn.30013250
test bl, bl
je 0x3000feed
push esi
lea ecx, [ebp - 0x290]
call fcn.30012c7b
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 2
call fcn.300115e9
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 0
call fcn.30013250
push dword [ebp - 0x264]
lea ecx, [ebp - 0x2b8]
call fcn.300115e9
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.30012f0c
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x264], eax
je 0x30016b27
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x30010dd8
lea eax, [ebp - 0x234]
push eax
call ebx
test eax, eax
je 0x3001002d
push 0x3001006c
lea eax, [ebp - 0x234]
push eax
call ebx
test eax, eax
je 0x3001002d
mov ecx, edi
call fcn.30012f0c
push eax
lea ecx, [ebp - 0x2e0]
call fcn.30012c7b
push esi
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.30012c7b
push 1
push eax
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 4
call fcn.30011379
mov bl, al
neg bl
sbb bl, bl
lea ecx, [ebp - 0x290]
inc bl
mov byte [ebp - 4], 3
call fcn.30013250
test bl, bl
je 0x3000ffd3
push esi
lea ecx, [ebp - 0x290]
call fcn.30012c7b
push eax
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 5
call fcn.300115e9
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.30013250
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x290]
call fcn.30012c7b
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 6
call fcn.300115e9
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 3
call fcn.30013250
lea eax, [ebp - 0x2e0]
push eax
call fcn.3000fe10
test al, al
jne 0x3000c27c
lea ecx, [ebp - 0x2e0]
mov byte [ebp - 4], 0
call fcn.30013250
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x3000ff26
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindClose]
Function at 0x300115e9
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
call fcn.3001158f
test al, al
jne 0x30011646
push esi
push edi
mov ecx, ebx
call fcn.3001164b
mov ecx, dword [ebp + 8]
mov edi, eax
call fcn.3001164b
lea esi, [eax + edi + 1]
push esi
mov ecx, ebx
mov dword [ebp - 4], eax
call fcn.30012deb
push dword [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebx + 8]
sub esi, edi
push esi
lea eax, [eax + edi*2]
push eax
call fcn.30012d4c
test eax, eax
jne 0x3001608b
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x300123d7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30053c20]
jne 0x30029b84
repz ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x30055320], eax
mov dword [0x3005531c], ecx
mov dword [0x30055318], edx
mov dword [0x30055314], ebx
mov dword [0x30055310], esi
mov dword [0x3005530c], edi
mov word [0x30055338], ss
mov word [0x3005532c], cs
mov word [0x30055308], ds
mov word [0x30055304], es
mov word [0x30055300], fs
mov word [0x300552fc], gs
pushfd
pop dword [0x30055330]
mov eax, dword [ebp]
mov dword [0x30055324], eax
mov eax, dword [ebp + 4]
mov dword [0x30055328], eax
lea eax, [ebp + 8]
mov dword [0x30055334], eax
mov eax, dword [ebp - 0x320]
mov dword [0x30055270], 0x10001
mov eax, dword [0x30055328]
mov dword [0x30055224], eax
mov dword [0x30055218], 0xc0000409
mov dword [0x3005521c], 1
mov eax, dword [0x30053c20]
mov dword [ebp - 0x328], eax
mov eax, dword [section..data]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x30055268], eax
push 1
call fcn.30029d1c
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x30029c88
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x30055268], 0
jne 0x30029c74
push 1
call fcn.30029d1c
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x30023914
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x218
push dword [ebp + 0xc]
call fcn.30012f0c
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x30023978
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.30012f0c
push eax
push 0x3002397c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.30023192
add esp, 0x14
push 0x43
pop ecx
mov esi, eax
push 0x30049d54
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.30028332
leave
ret 8

Function at 0x3002399e
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
xor eax, eax
cmp byte [ebp + 0x10], al
push ebx
mov ebx, dword [ebp + 0xc]
sete al
push esi
mov ecx, ebx
push eax
mov dword [ebp + 0x10], eax
call fcn.30012f0c
mov ecx, dword [ebp + 8]
push eax
call fcn.30012f0c
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push eax
call esi
test eax, eax
jne 0x30023a4f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 5
jne 0x30023a08
push 0x80
push ebx
call fcn.30023914
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.30012f0c
mov ecx, dword [ebp + 8]
push eax
call fcn.30012f0c
push eax
call esi
test eax, eax
jne 0x30023a4e
mov ecx, ebx
call fcn.30012f0c
mov ecx, dword [ebp + 8]
push eax
call fcn.30012f0c
push eax
push 0x30023a58
call edi
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.30023192
add esp, 0x14
push 0x43
pop ecx
mov esi, eax
push 0x30049d54
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.30028332
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x30024211
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x218
push esi
push 0
call fcn.30012f0c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, eax
test esi, esi
je 0x3002427d
cmp esi, 0x50
je 0x3002427d
cmp esi, 0xb7
je 0x3002427d
mov ecx, dword [ebp + 8]
call fcn.30012f0c
push eax
push 0x30024284
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.30023192
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
push 0x30049d54
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.30028332
pop esi
leave
ret 4

Function at 0x30024473
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
sub esp, 0x218
cmp eax, 0xffffffff
jne 0x300244b7
push 0x3002016c
lea eax, [ebp - 0x218]
push 0x3d
push eax
call fcn.30022471
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30049d54
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.30028332
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
leave
ret 4
Function at 0x300244c5
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
sub esp, 0x218
cmp eax, 0xffffffff
jne 0x30024509
push 0x3002016c
lea eax, [ebp - 0x218]
push 0x3d
push eax
call fcn.30022471
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30049d54
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.30028332
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
leave
ret

Function at 0x300249a6
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x490
mov eax, 0x30043020
call fcn.30013068
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x30], ebx
jne 0x300249f2
push 0x30024ba8
lea eax, [ebp - 0x390]
push 0x3a
push eax
call fcn.30022471
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
lea edi, [ebp - 0x178]
rep movsd dword es:[edi], dword [esi]
push 0x30049d54
lea eax, [ebp - 0x178]
push eax
call fcn.30028332
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x10], 1
call fcn.30012f0c
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push dword [esi + 0x30]
call edi
cmp eax, ebx
jle 0x30024a2c
and eax, 0xffff
or eax, 0x80070000
cmp eax, 0x80070002
mov dword [ebp - 0x14], eax
je 0x30024b5d
cmp dword [ebp - 0x18], 7
jne 0x30024b5d
cmp eax, ebx
jge 0x30024a76
mov ecx, dword [ebp + 8]
call fcn.30012f0c
push eax
lea ecx, [esi + 8]
call fcn.30012f0c
push eax
push 0x30024b68
push dword [ebp - 0x14]
lea eax, [ebp - 0x390]
push eax
call fcn.300224a5
add esp, 0x14
jmp 0x300249d4
mov eax, dword [ebp - 0x10]
inc eax
inc eax
mov dword [ebp - 0x10], eax
shr eax, 1
push eax
lea ecx, [ebp - 0x6c]
call fcn.30024693
lea eax, [ebp - 0x10]
push eax
push ebx
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], ebx
call fcn.3002492a
mov ecx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.30012f0c
push eax
push dword [esi + 0x30]
call edi
cmp eax, ebx
jle 0x30024abb
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jge 0x30024b05
mov ecx, dword [ebp + 8]
call fcn.30012f0c
push eax
lea ecx, [esi + 8]
call fcn.30012f0c
push eax
push 0x30024b68
lea eax, [ebp - 0x49c]
push edi
push eax
call fcn.300224a5
add esp, 0x14
push 0x43
pop ecx
mov esi, eax
lea edi, [ebp - 0x284]
rep movsd dword es:[edi], dword [esi]
push 0x30049d54
lea eax, [ebp - 0x284]
jmp 0x300249ec
push ebx
lea ecx, [ebp - 0x6c]
call fcn.3002492a
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.300123e5
mov byte [ebp - 4], 1
push esi
lea ecx, [ebp - 0x40]
call fcn.30012cd5
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x40]
push eax
call fcn.30010c6b
lea ecx, [ebp - 0x40]
call fcn.3001164b
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x30024b1c
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.30013250
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.30024702
mov al, 1
jmp 0x30024b5f
xor al, al
call fcn.300130d6
ret 8