joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403683
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402561
and dword [ebp - 4], 0
cmp dword [0x40be68], 0
mov ebx, eax
jne 0x403734
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4037e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4037e5
push eax
call fcn.004024ef
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40be68], eax
call esi
push eax
call fcn.004024ef
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40be6c], eax
call esi
push eax
call fcn.004024ef
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40be70], eax
call esi
push eax
call fcn.004024ef
pop ecx
mov dword [0x40be78], eax
test eax, eax
je 0x403734
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004024ef
pop ecx
mov dword [0x40be74], eax
mov eax, dword [0x40be74]
cmp eax, ebx
je 0x40378c
cmp dword [0x40be78], ebx
je 0x40378c
push eax
call fcn.0040256a
push dword [0x40be78]
mov esi, eax
call fcn.0040256a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40378c
test edi, edi
je 0x40378c
call esi
test eax, eax
je 0x403783
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403783
test byte [ebp - 0xc], 1
jne 0x40378c
or dword [ebp + 0x10], 0x200000
jmp 0x4037c5
mov eax, dword [0x40be6c]
cmp eax, ebx
je 0x4037c5
push eax
call fcn.0040256a
pop ecx
test eax, eax
je 0x4037c5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4037c5
mov eax, dword [0x40be70]
cmp eax, ebx
je 0x4037c5
push eax
call fcn.0040256a
pop ecx
test eax, eax
je 0x4037c5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40be68]
call fcn.0040256a
pop ecx
test eax, eax
je 0x4037e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4037e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10001b37
Capabilities:
Encode data using xor

Disassembly:
invalid
mov ch, 0xaf
inc esi
cmc
cwde
xor ebp, esp
imul eax, dword [edi], 0x904fb10
aaa
mov byte [0xab42e792], al
xchg ebp, eax
jl 0x10001acd
sbb eax, 0x79e7ca8
mov esi, 0xc854d28b
jo 0x10001bca
sub al, 0xec
invalid
pop ecx
or dword [ebp + 0x60d0bff8], eax
inc ebx
shl byte [eax + 0x43], 1
popfd
insb byte es:[edi], dx
pop edi
inc byte [ebp + 9]
inc edx
xor eax, 0xd0a4e9c9
test eax, 0xee9d4ea2
loop 0x10001bc5
test dword [edx + 0x4f], 0x839c7ffc
inc esp
push esi
mov al, byte [0xf7794a2a]
xor eax, 0xe059c8a0
inc eax
add eax, eax
dec esp
scasb al, byte es:[edi]
add ecx, ebp
das
aad 0xcc
movsd dword es:[edi], dword [esi]
invalid
Function at 0x1123d058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1123d1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1123d07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1123d06a
add dl, dl
jne 0x1123d089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1123d0dc
xor eax, eax
add dl, dl
jne 0x1123d096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1123d17d
add dl, dl
jne 0x1123d0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1123d0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1123d0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1123d0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1123d0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1123d075
mov eax, 1
add dl, dl
jne 0x1123d0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1123d0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1123d0e1
sub eax, ebx
mov ebx, 1
jne 0x1123d128
mov ecx, 1
add dl, dl
jne 0x1123d10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1123d119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1123d105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1123d075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1123d13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1123d14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1123d136
cmp eax, 0x7d00
jae 0x1123d16d
cmp eax, 0x500
jb 0x1123d168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1123d075
cmp eax, 0x7f
ja 0x1123d170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1123d075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1123d19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1123d075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x421bd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x421bf2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x421bf9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421be8
mov eax, 1
add ebx, ebx
jne 0x421c0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x421c1c
jne 0x421c2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x421c2c
dec eax
add ebx, ebx
jne 0x421c28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x421c00
xor ecx, ecx
sub eax, 3
jb 0x421c44
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x421cb6
sar eax, 1
mov ebp, eax
jmp 0x421c4f
add ebx, ebx
jne 0x421c4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x421c5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x421c80
inc ecx
add ebx, ebx
jne 0x421c6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x421c61
jne 0x421c7d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x421c61
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x421ca0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x421c91
jmp 0x421bee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x421ca0
add edi, ecx
jmp 0x421bee
pop esi
mov edi, esi
mov ecx, 0x843
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x421cbe
cmp byte [edi], 0xd
jne 0x421cbe
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x421cc3
lea edi, [esi + 0x1f000]
mov eax, dword [edi]
or eax, eax
je 0x421d3b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x228e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2299c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x421cf0
mov ecx, edi
jns 0x421d1f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x229a0]
or eax, eax
je 0x421d35
mov dword [ebx], eax
add ebx, 4
jmp 0x421d0d
call dword [esi + 0x229a4]
popal
jmp section.UPX0
Function at 0x30009094
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x300213ec]
jne 0x3000bab2
repz ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x30022a80], eax
mov dword [0x30022a7c], ecx
mov dword [0x30022a78], edx
mov dword [0x30022a74], ebx
mov dword [0x30022a70], esi
mov dword [0x30022a6c], edi
mov word [0x30022a98], ss
mov word [0x30022a8c], cs
mov word [0x30022a68], ds
mov word [0x30022a64], es
mov word [0x30022a60], fs
mov word [0x30022a5c], gs
pushfd
pop dword [0x30022a90]
mov eax, dword [ebp]
mov dword [0x30022a84], eax
mov eax, dword [ebp + 4]
mov dword [0x30022a88], eax
lea eax, [ebp + 8]
mov dword [0x30022a94], eax
mov eax, dword [ebp - 0x320]
mov dword [0x300229d0], 0x10001
mov eax, dword [0x30022a88]
mov dword [0x30022984], eax
mov dword [0x30022978], 0xc0000409
mov dword [0x3002297c], 1
mov eax, dword [0x300213ec]
mov dword [ebp - 0x328], eax
mov eax, dword [0x300213f0]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x300229c8], eax
push 1
call fcn.3000bbb6
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x30003f60
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x300229c8], 0
jne 0x3000bba2
push 1
call fcn.3000bbb6
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x3000dce8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.3000a538
xor ebx, ebx
cmp dword [0x30022e2c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x3000ddbd
push 0x30004078
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x3000dd28
xor eax, eax
jmp 0x3000de81
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x3000406c
push edi
call esi
cmp eax, ebx
je 0x3000dd21
push eax
call fcn.3000a4d5
mov dword [esp], 0x3000405c
push edi
mov dword [0x30022e2c], eax
call esi
push eax
call fcn.3000a4d5
mov dword [esp], 0x30004048
push edi
mov dword [0x30022e30], eax
call esi
push eax
call fcn.3000a4d5
mov dword [0x30022e34], eax
lea eax, [ebp - 8]
push eax
call fcn.30009844
test eax, eax
pop ecx
pop ecx
je 0x3000dd8b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.300091e4
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x3000ddbd
push 0x3000402c
push edi
call esi
push eax
call fcn.3000a4d5
cmp eax, ebx
pop ecx
mov dword [0x30022e3c], eax
je 0x3000ddbd
push 0x30004014
push edi
call esi
push eax
call fcn.3000a4d5
pop ecx
mov dword [0x30022e38], eax
mov eax, dword [0x30022e38]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x3000de36
cmp dword [0x30022e3c], esi
je 0x3000de36
push eax
call fcn.3000a541
pop ecx
call eax
cmp eax, ebx
je 0x3000de03
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x30022e3c]
call fcn.3000a541
pop ecx
call eax
test eax, eax
je 0x3000de03
test byte [ebp - 0x18], 1
jne 0x3000de36
lea eax, [ebp - 0xc]
push eax
call fcn.3000987b
test eax, eax
pop ecx
je 0x3000de1e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.300091e4
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x3000de2d
or dword [ebp + 0x10], 0x200000
jmp 0x3000de67
or dword [ebp + 0x10], 0x40000
jmp 0x3000de67
mov eax, dword [0x30022e30]
cmp eax, esi
je 0x3000de67
push eax
call fcn.3000a541
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x3000de67
mov eax, dword [0x30022e34]
cmp eax, esi
je 0x3000de67
push dword [ebp - 4]
push eax
call fcn.3000a541
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x30022e2c]
call fcn.3000a541
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x30014f98
Capabilities:
Query environment variable

Disassembly:
push 0x234
mov eax, 0x3001d37d
call fcn.300090a2
mov edi, ecx
lea ecx, [ebp - 0x28]
call fcn.3001458a
and dword [ebp - 4], 0
push 0x104
lea ecx, [ebp - 0x28]
call fcn.300070a9
mov ecx, eax
call fcn.30014499
lea ecx, [ebp - 0x28]
call fcn.300070a9
mov esi, dword [eax + 0xc]
lea ecx, [ebp - 0x28]
call fcn.30014cfb
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.300070a9
cmp ebx, dword [eax + 0xc]
jbe 0x3001502a
push ebx
lea ecx, [ebp - 0x28]
call fcn.300070a9
mov ecx, eax
call fcn.30014499
lea ecx, [ebp - 0x28]
call fcn.300070a9
mov ebx, dword [eax + 0xc]
lea ecx, [ebp - 0x28]
call fcn.30014cfb
mov eax, dword [eax + 8]
push ebx
push eax
push dword [edi + 8]
call esi
mov ebx, eax
test ebx, ebx
jne 0x30015067
push 0x300051f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.30014652
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x3001de44
lea eax, [ebp - 0x134]
lea edi, [ebp - 0x134]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3000968c
lea ecx, [ebp - 0x28]
call fcn.30014cfb
push eax
mov ecx, edi
call fcn.30014e33
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.300145eb
call fcn.3000917a
ret

Function at 0x30015dbe
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov ecx, dword [ebp + 8]
mov eax, 0x101
push eax
mov dword [ebp - 4], eax
call fcn.30014499
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.30013ed2
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x30015e29
push 0x30005358
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.30014652
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x3001de44
lea eax, [ebp - 0x110]
lea edi, [ebp - 0x110]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3000968c
leave
ret 4

Function at 0x300163c2
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
jne 0x30016409
push 0x3000550c
lea eax, [ebp - 0x21c]
push 0x15
push eax
call fcn.30006f6a
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x3001de44
lea eax, [ebp - 0x110]
lea edi, [ebp - 0x110]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3000968c
mov ecx, dword [ebp + 8]
and dword [ebp - 4], 0
call fcn.30013fd7
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
jne 0x3001644d
push 0x300054f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.30014652
jmp 0x300163e8
pop edi
pop esi
leave
ret 4
Function at 0x300164af
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x218
push dword [ebp + 0xc]
call fcn.30013ed2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x30016513
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.30013ed2
push eax
push 0x30005538
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.30014652
add esp, 0x14
push 0x43
pop ecx
mov esi, eax
push 0x3001de44
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3000968c
leave
ret 8

Function at 0x30016517
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x218
push edi
call fcn.30013ed2
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
jne 0x300165a9
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebx, eax
cmp ebx, 5
jne 0x30016567
push 0x80
push dword [ebp + 8]
call fcn.300164af
mov ecx, dword [ebp + 8]
call fcn.30013ed2
push eax
call edi
test eax, eax
jne 0x300165a7
call esi
mov ebx, eax
test ebx, ebx
je 0x300165a7
mov ecx, dword [ebp + 8]
call fcn.30013ed2
push eax
push 0x3000555c
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.30014652
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
push 0x3001de44
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3000968c
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0x30016f1e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x218
push 0x104
call fcn.30014499
mov ecx, dword [ebp + 8]
call fcn.30013ed2
mov ecx, dword [ebp + 8]
push eax
call fcn.30013f09
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x30016f89
push 0x3000575c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.30014652
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x3001de44
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3000968c
leave
ret 4

Function at 0x30017675
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push 0x300059c0
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
jne 0x3001769e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x3001769e
xor bl, bl
jmp 0x300176ab
test esi, esi
mov bl, 1
je 0x300176ab
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
ret

Function at 0x3001770a
Capabilities:
Accept command line arguments

Disassembly:
push 0x244
mov eax, 0x3001d9bb
call fcn.300090a2
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
jne 0x3001776d
push 0x30005a10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.30014652
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x3001de44
lea eax, [ebp - 0x144]
lea edi, [ebp - 0x144]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3000968c
xor esi, esi
cmp dword [ebp - 0x10], esi
jle 0x300177a1
push dword [edi + esi*4]
lea ecx, [ebp - 0x38]
call fcn.30014ede
mov ecx, dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
call fcn.30015916
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.300141f8
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x30017774
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call fcn.3000917a
ret 4

Function at 0x300179d0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
sub esp, 0x218
cmp eax, 0xffffffff
jne 0x30017a14
push 0x30005ab4
lea eax, [ebp - 0x218]
push 0x3d
push eax
call fcn.30006f6a
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x3001de44
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3000968c
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
leave
ret 4

Function at 0x30017a22
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
sub esp, 0x218
cmp eax, 0xffffffff
jne 0x30017a66
push 0x30005ab4
lea eax, [ebp - 0x218]
push 0x3d
push eax
call fcn.30006f6a
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x3001de44
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3000968c
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
leave
ret
Function at 0x30017d70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.30013ed2
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x30017d8b
xor al, al
jmp 0x30017d90
shr al, 4
and al, 1
pop ebp
ret 4

Function at 0x30017d94
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x218
push esi
push 0
call fcn.30013ed2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, eax
test esi, esi
je 0x30017e00
cmp esi, 0x50
je 0x30017e00
cmp esi, 0xb7
je 0x30017e00
mov ecx, dword [ebp + 8]
call fcn.30013ed2
push eax
push 0x30005b34
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.30014652
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
push 0x3001de44
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3000968c
pop esi
leave
ret 4
Function at 0x4096e0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
jmp 0x409789
cmp dword [esi + 0x10], 0x1000
jne 0x409775
test byte [esi + 0x15], 1
jne 0x409775
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409734
cmp eax, 2
je 0x409734
cmp eax, 0x10
je 0x409734
cmp eax, 0x20
jne 0x409749
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409749
mov bl, 1
xor ebp, ebp
jmp 0x40975a
mov eax, dword [esi]
add eax, ebp
call fcn.004096d8
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40974d
test bl, bl
je 0x409775
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40970c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x438c8f
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
add edi, 0x8de67ad6
add ecx, edi
call fcn.00438cda
or edi, edi
sub ecx, 0x526ae5bf
and edi, ecx
xor dword [eax], edx
mov ecx, 0xb81c48d
mov ecx, 0xa463b86a
inc eax
add edi, 0x12874560
add ecx, 0x284c862d
inc edi
cmp eax, esi
jne fcn.00438c8f
add ecx, edi
mov ecx, 0x51bef6b2
inc ecx
ret
Function at 0x404ac0
Capabilities:
Get common file path
Get disk information
Get memory capacity
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd48
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x45a378]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [str._axO]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x24], 0x9e3779b9
mov dword [ebp - 0x20], edx
call fcn.00404ab0
mov ecx, dword [0x45a380]
mov edx, dword [0x45a384]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], 0x20
jmp 0x404b30
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x461b04]
shl esi, 4
add esi, dword [ebp - 0x28]
cmp eax, 0xfa9
jne 0x404b5c
mov dword [0x461b00], 0xedeb2e40
jmp 0x404b77
cmp eax, 0x3eb
jne 0x404b77
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x461590], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x2c]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x461b04], 0x9e6
mov dword [0x461afc], 0xf4ea3dee
jne 0x404bb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommMask]
xor dword [ebp - 4], esi
cmp dword [0x461b04], 0x213
jne 0x404c32
push 0
push 0
push 0
push 0
call ebx
lea eax, [ebp - 0x548]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
lea ecx, [ebp - 0xd48]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub edi, dword [ebp - 4]
cmp dword [0x461b04], 0xc
jne 0x404c46
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [ebp - 8]
mov eax, edi
shr eax, 5
lea ecx, [edx + edi]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov edx, edi
shl edx, 4
add edx, dword [ebp - 0x20]
xor edx, dword [ebp - 4]
xor edx, ecx
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x404b30
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4