joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012cf0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10026312
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x1002e080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ax, word [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x224], 0
xor ecx, ecx
push 0x206
mov word [ebp - 0x18], ax
push ecx
lea edx, [ebp - 0x21e]
xor eax, eax
push edx
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x16], 0x5c003a
mov word [ebp - 0x12], ax
mov word [ebp - 0x220], cx
call fcn.10017090
add esp, 0xc
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea eax, [ebp - 0x220]
mov word [esi], dx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10012da0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x220]
call fcn.10002660
mov dword [ebp - 4], 0
mov dword [ebp - 0x224], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10013b9a
mov esp, ebp
pop ebp
ret

Function at 0x10012df0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024f88
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1002e080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 0x10000
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0x10000
call fcn.10013b84
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x10012e4d
push eax
push eax
push eax
push 0x6e6577
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 0x10000
push 0
push esi
call fcn.10017090
add esp, 0xc
mov dword [ebp - 4], 0
push 0
push 0
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x10000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10012ea2
mov ecx, dword [ebp + 0xc]
push 0x5a
push esi
push 0x5a
push ecx
lea edi, [ebx + 1]
call fcn.10015314
add esp, 0x10
jmp 0x10012ea4
mov edi, ebx
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x10012ebb
push esi
call fcn.10014cb1
add esp, 4
mov dword [ebp - 0x1c], ebx
mov eax, edi
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10012ee0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10024f88
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1002e080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 0x10000
xor ebx, ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0x10000
call fcn.10013b84
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x10012f3d
push eax
push eax
push eax
push 0x6e6577
call dword [sym.imp.KERNEL32.dll_RaiseException]
push 0x10000
push 0
push esi
call fcn.10017090
add esp, 0xc
mov dword [ebp - 4], 0
push 0
push 0
push ebx
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x10000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10012f98
mov ecx, dword [ebp + 0xc]
push 0x200
push esi
push 0x200
push ecx
lea edi, [ebx + 1]
call fcn.10015314
add esp, 0x10
jmp 0x10012f9a
mov edi, ebx
mov dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x10012fb1
push esi
call fcn.10014cb1
add esp, 4
mov dword [ebp - 0x1c], ebx
mov eax, edi
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10012fd0
Capabilities:
Get volume information via ioctl

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
test esi, esi
je 0x1001300e
cmp esi, 0xffffffff
je 0x1001300e
push 0x60
push 0
push edi
call fcn.10017090
add esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
push 0x60
push edi
push 0
push 0
push 0x90064
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10013020
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1002e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [ebp + 8]
push ebx
push esi
push edi
mov word [ebp - 0x20c], ax
xor eax, eax
push 0x200
mov esi, ecx
push eax
lea ecx, [ebp - 0x204]
push ecx
mov dword [ebp - 0x20a], 0x5c003a
mov word [ebp - 0x206], ax
call fcn.10017090
add esp, 0xc
xor eax, eax
mov dword [esi], eax
lea ebx, [esi + 0xc]
push ebx
lea edx, [esi + 8]
push edx
mov dword [esi + 4], eax
mov dword [esi + 8], eax
lea edi, [esi + 4]
push edi
mov dword [esi + 0xc], eax
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov esi, dword [esi]
imul esi, dword [edi]
test esi, esi
jne 0x100130a0
mov esi, 0x1000
push 0
push esi
push 0
push 0x80000000
call fcn.1001aae0
mov ecx, dword [ebp - 4]
pop edi
mov dword [0x1002f564], eax
mov eax, dword [ebx]
pop esi
xor ecx, ebp
xor edx, edx
pop ebx
call fcn.10013b9a
mov esp, ebp
pop ebp
ret

Function at 0x10013b9a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002e080]
jne 0x10013ba4
repz ret
jmp fcn.10015c7e
Function at 0x100171c6
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x10017201
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x100171e8
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x100171f9
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x10017203
inc edi
add eax, 0x28
cmp edi, esi
jb 0x100171de
xor eax, eax
pop edi
pop esi
ret

Function at 0x1001742e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea eax, [ebp - 0x58]
push eax
call fcn.10017196
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.1001714b
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x10017474
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
scasd eax, dword es:[edi]
lea esi, [edi + edi*8 - 1]
dec dword [ecx + 0x5d880c4d]
ror byte [eax + 0x45c6c15d], 0xc2
in al, dx
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.10017186
pop edx
js 0x10017475
fimul word [ebp - 0x17af3fbb]
invalid

Function at 0x10017592
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
push esi
push dword [ebp + 8]
call fcn.1001714b
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10017196
push eax
push esi
push dword [ebp + 8]
call fcn.1001714b
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10017186
mov dword [edx - 0x6277b9aa], ebp
jl 0x1001760b
invalid
invalid
Function at 0x100180d1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
adc al, dh
test dword [ecx + 0x30fffffc], ebx
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
cld
invalid
jmp dword [ecx]
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.10017196
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1001714b
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.10017186
mov edi, 0x68319d74
add al, 1
add byte [eax], al
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.10017186
leave
shl byte [edx], cl
mov dword [eax - 0x7fff1f9b], eax
loope 0x100181a8
mov byte [ebp - 0x1e], 0x1d
and byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0xa5
mov byte [ebp - 0x1b], 0x87
mov byte [ebp - 0x1a], 0x96
xchg esi, eax
mov byte [ebp - 0x19], 0xb6
mov byte [ebp - 0x18], 0x87
mov byte [ebp - 0x17], 0x8f
mov byte [ebp - 0x16], 0x92
mov byte [ebp - 0x15], 0xb2
mov byte [ebp - 0x14], 0x83
mov byte [ebp - 0x13], 0x96
mov byte [ebp - 0x12], 0x8a
mov byte [ebp - 0x11], 0xa3
mov byte [ebp - 0x10], 0xe2
lea eax, [ebp - 0x20]
push eax
call fcn.10017196
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1001714b
add esp, 0xc
mov dword [ebp - 0x370], eax
lea eax, [ebp - 0x654]
push eax
push 0x104
call dword [ebp - 0x370]
mov dword [ebp - 0x550], eax
mov eax, dword [ebp - 0x28]
movsx eax, byte [ebp + eax - 0x12d]
cmp eax, 0x5c
jne 0x10018232
mov eax, dword [ebp - 0x28]
dec eax
invalid

Function at 0x10019387
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.10017186
mov ebx, 0x4906fd51
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x10019373
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x10019373
call fcn.10017186
jb 0x10019359
invalid
Function at 0x1001ec20
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1002e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1001a13d
and dword [ebp - 0x14], 0
cmp dword [0x100304a8], 0
mov dword [ebp - 0x18], eax
jne 0x1001ecd3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1001ed7b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1001ed7b
mov esi, dword [section..data]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100304a8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100304ac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x100304b0], eax
call edi
push eax
call esi
mov dword [0x100304b8], eax
test eax, eax
je 0x1001ecd3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x100304b4], eax
mov eax, dword [0x100304b4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x1002e004]
cmp eax, ecx
je 0x1001ed2c
cmp dword [0x100304b8], ecx
je 0x1001ed2c
push eax
call esi
push dword [0x100304b8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1001ed2c
test ebx, ebx
je 0x1001ed2c
call edi
test eax, eax
je 0x1001ed23
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1001ed23
test byte [ebp - 8], 1
jne 0x1001ed2c
or dword [ebp + 0x10], 0x200000
jmp 0x1001ed5f
mov eax, dword [0x100304ac]
cmp eax, dword [ebp - 0x18]
je 0x1001ed5f
push eax
call esi
test eax, eax
je 0x1001ed5f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001ed5f
mov eax, dword [0x100304b0]
cmp eax, dword [ebp - 0x18]
je 0x1001ed5f
push eax
call esi
test eax, eax
je 0x1001ed5f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100304a8]
call esi
test eax, eax
je 0x1001ed7b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1001ed7d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10013b9a
leave
ret
Function at 0x401000
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
lea eax, [ebp - 0x218]
push edi
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
push 0x403028
push 0x403024
lea eax, [ebp - 0x88]
push str.lo_sh_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x88]
push eax
call sub.WS2_32.dll_gethostbyname
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x401100
push ebx
push 1
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x401100
xor eax, eax
lea edi, [ebp - 0x1f]
mov word [ebp - 0x24], 2
mov word [ebp - 0x22], bx
mov byte [ebp - 0x20], bl
push 0x10
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x1b]
mov byte [ebp - 0x1c], bl
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call sub.WS2_32.dll_bind
cmp eax, 0xffffffff
je 0x401100
xor eax, eax
lea edi, [ebp - 0xf]
mov word [ebp - 0x14], 2
mov word [ebp - 0x12], bx
mov byte [ebp - 0x10], bl
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0xb]
mov byte [ebp - 0xc], bl
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ax, word [0x403014]
push eax
call sub.WS2_32.dll_htons
movsx ecx, word [esi + 0xa]
mov word [ebp - 0x12], ax
mov eax, dword [esi + 0xc]
lea edi, [ebp - 0x10]
push 0x10
mov esi, dword [eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x14]
push eax
and ecx, 3
push dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x401100
mov al, 1
jmp 0x401102
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401143
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x403030
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x401187
lea eax, [ebp + 0xc]
and dword [ebp + 0xc], 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00401107
push esi
push dword [ebp + 0xc]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x20
pop esi
pop ebp
ret
Function at 0x40118a
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.004012a0
call section..text
test al, al
jne 0x401273
push esi
lea eax, [ebp - 0x2000]
push 0x1000
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push 0x403098
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push dword [0x403010]
lea eax, [ebp - 0x2000]
push 0x403094
push 0x403090
push eax
lea eax, [ebp - 0x1000]
push str._s_sive_s_s.s_s
push eax
call esi
lea eax, [ebp - 0x1000]
push 0xc9
push eax
push dword [ebp + 8]
call fcn.00401143
push 0x40307c
lea eax, [ebp - 0x2000]
push dword [0x403010]
push eax
lea eax, [ebp - 0x1000]
push str._s_s_sl
push eax
call esi
lea eax, [ebp - 0x1000]
push 0xc8
push eax
push dword [ebp + 8]
call fcn.00401143
add esp, 0x48
lea eax, [ebp - 0x1000]
push str.n__in
push str.ceMa
push str.__Se
push eax
push 0x403054
push 0x403050
lea eax, [ebp - 0x2000]
push str._sndl_s___s_srvi_si_sstall
push eax
call esi
add esp, 0x20
lea eax, [ebp - 0x2000]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
pop esi
xor eax, eax
leave
ret 0x10
Function at 0x405cc0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x270
mov edi, dword [esp + 0x284]
mov eax, dword [0x4bf018]
xor eax, esp
mov dword [esp + 0x26c], eax
lea esi, [esp + 0x25]
push 0x107
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call fcn.00480220
add esp, 4
mov word [esp + eax + 0x25], 0x2a5c
mov byte [esp + eax + 0x27], 0
lea ebx, [esp + 0x12c]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x405d3a
mov esi, eax
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x140
push ebx
call edi
add esp, 8
push ebx
push esi
call ebp
test eax, eax
jne 0x405d20
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp], eax
mov eax, esp
push 4
push eax
call edi
add esp, 8
lea esi, [esp + 5]
push 0x20
push esi
call fcn.00405bb0
add esp, 8
test al, al
je 0x405d73
push 0x20
push esi
call edi
add esp, 8
push 0x20
push esi
call fcn.0042efd0
add esp, 8
push edi
call fcn.004176a0
add esp, 4
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.0046c040
add esp, 0x270
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x405da0
Capabilities:
Get memory capacity

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [0x4bf018]
xor eax, esp
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [esp + 0x2c], eax
lea esi, [esp + 0x2c]
push 4
push esi
push 9
call fcn.00416ad0
add esp, 0xc
call dword [sym.imp.USER32.dll_GetCapture]
mov dword [esp + 0x2c], eax
push 4
push esi
push 0xa
call fcn.00416ad0
add esp, 0xc
call dword [sym.imp.USER32.dll_GetClipboardOwner]
mov dword [esp + 0x2c], eax
push 4
push esi
push 0xb
call fcn.00416ad0
add esp, 0xc
push 0x1cbf
call dword [sym.imp.USER32.dll_GetQueueStatus]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push 4
push eax
push 0xc
call fcn.00416ad0
add esp, 0xc
lea esi, [esp + 0x20]
push esi
call dword [sym.imp.USER32.dll_GetCursorPos]
push 8
push esi
push 0xd
call fcn.00416ad0
add esp, 0xc
mov esi, esp
push esi
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push 0x20
push esi
push 6
call fcn.00416ad0
add esp, 0xc
lea ebp, [esp + 0x48]
lea ebx, [esp + 0x40]
lea edi, [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea esi, [esp + 0x30]
push ebp
push ebx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
push 0x20
push esi
push 0xe
call fcn.00416ad0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebp
push ebx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
push 0x20
push esi
push 0xf
call fcn.00416ad0
add esp, 0xc
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0046c040
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x46c89c
Capabilities:
Parse pe header

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

Function at 0x480be0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x480c0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x480c0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x480fe1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a1b00
push 0x4a1af8
push str.FlsAlloc
push 0x1e
call fcn.00481674
mov esi, eax
add esp, 0x10
test esi, esi
je 0x481015
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x48101b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x48105f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4a1b10
push 0x4a1b08
push str.FlsGetValue
push 0x20
call fcn.00481674
mov esi, eax
add esp, 0x10
test esi, esi
je 0x481096
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4886c8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x488765
push ebx
push esi
call fcn.004887b6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00488611
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x488712
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x488764
push edi
push eax
call fcn.00483304
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x488732
call fcn.004829bd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x488763
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00488611
add esp, 0x20
test eax, eax
jne 0x488751
push edi
call fcn.004829bd
jmp 0x488759
push ebx
call fcn.004829bd
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x488768
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x488779
pop esi
ret
push ebx
push edi
push esi
call fcn.004887b6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00483304
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4887a1
push ebx
push esi
push edi
call fcn.0046e7f0
add esp, 0xc
push 0
call fcn.004829bd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4887f8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00488a61

Function at 0x489019
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00489024