joyce8/EMBER2024-capa huggingface dataset:
Function at 0x300f31ab
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea ecx, [ebp - 0x42c]
call fcn.300f1eaa
xor ebx, ebx
push ebx
push 0xa
push 0xa
lea eax, [ebp - 0x42c]
push eax
call fcn.3012a940
test eax, eax
jne 0x300f3210
push 0x33666630
push 0x30002bf4
call fcn.300f2d34
cmp dword [ebp - 0x420], ebx
je 0x300f3209
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
call fcn.3010abc5
xor al, al
jmp 0x300f33eb
push esi
push edi
mov edi, 0x206
push edi
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.300fa08c
test al, al
jne 0x300f3251
push 0x33666631
push 0x30002adc
jmp 0x300f3290
push edi
lea eax, [ebp - 0x412]
push ebx
push eax
mov word [ebp - 0x414], bx
call sub.MSVCR80.dll_memset
lea eax, [ebp - 0x20c]
push eax
push 0x30002be8
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.300ee78d
add esp, 0x1c
test eax, eax
jge 0x300f32b5
push 0x33666632
push 0x30002bc0
call fcn.300f2d34
cmp dword [ebp - 0x420], ebx
je 0x300f32ae
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
call fcn.3010abc5
xor al, al
jmp 0x300f33e9
lea eax, [ebp - 0x42c]
push eax
push ebx
lea eax, [ebp - 0x414]
push eax
call fcn.300fb536
test al, al
jne 0x300f32d8
push ebx
push 0x33666633
call fcn.3010aa60
cmp dword [ebp - 0x42c], ebx
mov byte [ebp - 0x415], bl
jbe 0x300f33a0
cmp byte [ebp - 0x415], 0
jne 0x300f33a0
mov eax, dword [ebp - 0x420]
and dword [ebp - 0x430], 0
mov esi, ebx
shl esi, 2
add eax, esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x300f3393
test al, 0x10
je 0x300f3393
mov eax, dword [ebp - 0x420]
lea edi, [esi + eax]
push dword [edi]
call fcn.30123986
mov ecx, dword [edi]
mov edx, dword [ebp - 0x420]
lea eax, [ecx + eax*2 - 2]
cmp word [eax], 0x5c
je 0x300f334d
mov ecx, dword [esi + edx]
cmp eax, ecx
je 0x300f334d
dec eax
dec eax
cmp word [eax], 0x5c
jne 0x300f3341
cmp eax, dword [esi + edx]
je 0x300f3393
lea ecx, [ebp - 0x430]
push ecx
add eax, 2
push eax
call fcn.30126c04
cmp eax, 1
jl 0x300f3393
push dword [ebp - 0x430]
call fcn.300f2e4f
test al, al
je 0x300f3393
mov eax, dword [ebp - 0x430]
push eax
push 0x129a
mov dword [0x30276490], eax
call fcn.3010bae9
mov byte [ebp - 0x415], 1
inc ebx
cmp ebx, dword [ebp - 0x42c]
jb 0x300f32ea
xor edi, edi
xor esi, esi
cmp dword [ebp - 0x42c], edi
jbe 0x300f33ca
mov eax, dword [ebp - 0x420]
lea eax, [eax + esi*4]
cmp dword [eax], edi
je 0x300f33c1
push dword [eax]
call fcn.300ee73d
pop ecx
inc esi
cmp esi, dword [ebp - 0x42c]
jb 0x300f33ac
cmp dword [ebp - 0x420], edi
je 0x300f33e3
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
call fcn.3010abc5
mov al, byte [ebp - 0x415]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.30136bd1
leave
ret
Function at 0x300f3580
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x10
call dword [sym.imp.KERNEL32.dll_GetUserGeoID]
cmp eax, 0xffffffff
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
jne 0x300f35a5
xor ebx, ebx
push ebx
push 0x33346536
jmp 0x300f35c1
xor ebx, ebx
push ebx
push edi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
test eax, eax
jne 0x300f3670
push ebx
push 0x33346537
call fcn.3010aa60
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.300f2f84
cmp byte [0x3027648c], bl
je 0x300f3637
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push edi
push esi
push eax
call fcn.3010f168
test eax, eax
jl 0x300f362f
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x300f362f
lea eax, [esi + eax*2 - 2]
cmp word [eax], 0x2d
je 0x300f3618
cmp eax, esi
je 0x300f360a
dec eax
dec eax
cmp word [eax], 0x2d
jne 0x300f35fe
cmp word [eax], 0x2d
je 0x300f3618
push ebx
push 0x33666663
jmp 0x300f364c
add eax, 2
push eax
push edi
push esi
call fcn.300f303c
test eax, eax
jge 0x300f3670
push ebx
push 0x33666664
jmp 0x300f364c
push ebx
push 0x33666662
jmp 0x300f364c
push edi
push esi
push 0x5a
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x300f3670
push ebx
push 0x33666665
call fcn.3010aa60
push 0x30002c20
push edi
push esi
call fcn.300f303c
test eax, eax
jge 0x300f3670
push ebx
push 0x33666666
call fcn.3010aa60
xor al, al
jmp 0x300f3672
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x300f403c
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0xd8], eax
mov byte [ebp - 0xcd], 1
call fcn.301101f1
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebx
mov dword [ebp - 0xe0], eax
push ebx
jne 0x300f409a
push 0x33346663
call fcn.3010aa60
mov byte [ebp - 0xcd], bl
jmp 0x300f41bc
push 0x80200000
push ebx
push ebx
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
cmp eax, ebx
mov dword [ebp - 0xd4], eax
jne 0x300f40da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2ee7
je 0x300f4198
cmp eax, 0x8ca
je 0x300f4198
push ebx
push 0x33346664
jmp 0x300f4193
push 0xc6
lea eax, [ebp - 0xca]
push ebx
push eax
mov word [ebp - 0xcc], bx
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
add esp, 0xc
push ebx
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xcc]
push eax
push 0x13
push dword [ebp - 0xd4]
mov dword [ebp - 0xe4], 0xc8
call esi
test eax, eax
jne 0x300f412b
push ebx
push 0x33346665
jmp 0x300f4193
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0xcc]
push eax
mov dword [ebp - 0xdc], ebx
call fcn.30126c04
cmp eax, 3
je 0x300f415a
push 0x33346666
push 0x30002c70
call fcn.300f2d34
jmp 0x300f4198
cmp dword [ebp - 0xd8], ebx
mov eax, dword [ebp - 0xdc]
mov dword [edi], eax
je 0x300f419e
add eax, 0xfffffed4
cmp eax, 0x63
ja 0x300f419e
push ebx
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 0xd8]
push 0x21
push dword [ebp - 0xd4]
call esi
test eax, eax
jne 0x300f419e
push ebx
push 0x33346667
call fcn.3010aa60
mov byte [ebp - 0xcd], bl
cmp dword [ebp - 0xd4], ebx
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x300f41b4
push dword [ebp - 0xd4]
call esi
push dword [ebp - 0xe0]
call esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0xcd]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30136bd1
leave
ret 0x10

Function at 0x300f4346
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
push esi
push esi
push esi
push 0x300f4311
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
jne 0x300f436c
push esi
push 0x35386d6c
call fcn.3010aa60
xor al, al
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret
Function at 0x300f4ebe
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x3027752c], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x300f4f02
call ebx
test eax, eax
jns 0x300f4ef8
push 0x30002fa8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x30002f9c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x30277528], eax
mov dword [0x3027752c], 1
mov eax, dword [0x30277528]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x300f4f1e
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x300f4f4e
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x300f4f44
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x300f4f39
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x300f4f3e
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x300f4f4d
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x300fa109
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2220
call fcn.301374d4
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x1ffc
lea eax, [ebp - 0x221c]
push ebx
push eax
mov dword [ebp - 0x2220], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x2000
lea eax, [ebp - 0x2220]
push eax
mov dword [ebp - 0x214], ebx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x300fa170
push ebx
push 0x326b6371
call fcn.3010aa60
jmp 0x300fa25d
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [ebp - 0x214]
shr esi, 2
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x210], ebx
je 0x300fa25c
push edi
mov eax, dword [ebp - 0x210]
mov eax, dword [ebp + eax*4 - 0x2220]
cmp eax, dword [ebp - 0x21c]
je 0x300fa249
push eax
push ebx
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x300fa249
lea eax, [ebp - 0x220]
push eax
push 4
lea eax, [ebp - 0x218]
push eax
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x300fa242
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
push edi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
jbe 0x300fa242
push ebx
push 0x30001e08
lea eax, [ebp - 0x20c]
push eax
call fcn.30129eb3
test eax, eax
jne 0x300fa242
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x300fa242
push ebx
push 0x32743071
call fcn.3010aa60
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x210]
cmp dword [ebp - 0x210], esi
jb 0x300fa193
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.30136bd1
leave
ret
Function at 0x300fa26a
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x8022
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x300036b4
push 4
push esi
push 4
push 0xffffffffffffffff
push 0x3027754c
mov dword [ebp - 4], esi
call fcn.3010b14a
test eax, eax
jne 0x300fa2a9
push esi
push 0x326b6372
call fcn.3010aa60
xor al, al
jmp 0x300fa2f9
cmp dword [ebp - 4], esi
je 0x300fa2b6
push esi
call fcn.300fa0de
jmp 0x300fa2a5
cmp dword [0x30276470], 1
jne 0x300fa2c3
mov al, 1
jmp 0x300fa2f9
push edi
push esi
push esi
push esi
push 4
push dword [0x3027754c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
je 0x300fa2f1
mov edi, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp edi, esi
je 0x300fa2f1
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov al, 1
jmp 0x300fa2f8
call fcn.300fa109
xor al, al
pop edi
pop esi
leave
ret

Function at 0x300fa2fc
Capabilities:
Access the windows event log

Disassembly:
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
push 0x30001dc8
push 0
call esi
test eax, eax
jne 0x300fa32b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x300fa327
push 0
push 0x33346676
call fcn.3010aa60
xor al, al
pop esi
ret
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseEventLog]
push eax
call edi
push 0x30001de0
push 0
call esi
test eax, eax
jne 0x300fa35d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x300fa359
push 0
push 0x33766436
call fcn.3010aa60
xor al, al
jmp 0x300fa362
push eax
call edi
mov al, 1
pop edi
pop esi
ret

Function at 0x300fa721
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0x104
push ebx
push esi
jae 0x300fa740
push 0
push 0x326b6536
call fcn.3010aa60
jmp 0x300fa806
push edi
mov edi, dword [ebp + 8]
push 1
push 0x1c
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x300fa769
push 0x326b6537
push 0x300037c8
call fcn.300f2d34
jmp 0x300fa805
cmp byte [0x3027761a], 0
push dword [ebp + 0xc]
push edi
jne 0x300fa7fb
push 0x300037b0
call fcn.30125676
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
call esi
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
je 0x300fa79c
test al, 0x10
jne 0x300fa7a5
push 0
push edi
call ebx
test eax, eax
je 0x300fa805
push dword [ebp + 0xc]
push edi
push 0x300037a0
call fcn.30125676
push edi
call esi
cmp eax, 0xffffffff
je 0x300fa7bf
test al, 0x10
jne 0x300fa7c8
push 0
push edi
call ebx
test eax, eax
je 0x300fa805
push dword [ebp + 0xc]
push edi
push 0x3000378c
call fcn.30125676
push edi
call esi
cmp eax, 0xffffffff
je 0x300fa7e2
test al, 0x10
jne 0x300fa7f2
push 0
push edi
call ebx
test eax, eax
jne 0x300fa7f2
mov byte [0x3027761a], al
jmp 0x300fa805
mov byte [0x3027761a], 1
jmp 0x300fa805
push 0x30003758
call fcn.30125676
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x300fabbd
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp di, si
jbe 0x300fabdb
cmp dword [ebp + 0xc], esi
jne 0x300fabdb
xor al, al
jmp 0x300fad03
push ebx
push fcn.300fa070
push 8
push 0x1d
lea eax, [ebp + 8]
push 0x3022f0a8
push eax
call fcn.3011003b
mov ebx, eax
add esp, 0x14
cmp ebx, esi
jne 0x300fac04
push esi
push 0x326b646d
jmp 0x300fac45
cmp word [ebx + 6], di
jne 0x300fac4a
push esi
lea eax, [ebp - 0xc]
push eax
push 8
push 0x30003a10
call fcn.3010996b
test eax, eax
jne 0x300fad00
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x30001d88
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x300fac51
push esi
push 0x326b646f
call fcn.3010aa60
xor al, al
jmp 0x300fad02
movzx edi, di
push 4
xor ecx, ecx
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.301089da
mov ecx, eax
cmp ecx, esi
mov dword [ebp - 8], ecx
je 0x300facc0
cmp edi, esi
jbe 0x300fac98
mov eax, dword [ebp + 0xc]
sub ecx, eax
mov edx, dword [eax]
cmp edx, esi
je 0x300fac8a
cmp edx, 0x30002678
jne 0x300fac8f
mov edx, 0x300037f4
mov dword [ecx + eax], edx
add eax, 4
dec edi
jne 0x300fac7c
movzx eax, word [ebx + 4]
push esi
push dword [ebp - 8]
push esi
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push dword [ebp - 8]
mov edi, eax
call fcn.300ee73d
pop ecx
jmp 0x300face8
push esi
push 0x3569696a
call fcn.3010aa60
movzx eax, word [ebx + 4]
push esi
push dword [ebp + 0xc]
push esi
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov edi, eax
cmp edi, esi
jne 0x300facf7
push esi
push 0x326b6470
call fcn.3010aa60
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov al, 1
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x300fad09
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x300fad29
push ebx
push 0x37347a67
call fcn.3010aa60
xor al, al
jmp 0x300faec8
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x300fad42
push ebx
push 0x33766437
jmp 0x300fad1d
mov ecx, dword [ebp + 0x18]
cmp ecx, ebx
mov eax, 0x7d000
mov byte [ebp + 0xb], 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
je 0x300fad5d
mov dword [ecx], ebx
mov ecx, dword [ebp + 0x1c]
cmp ecx, ebx
je 0x300fad66
mov dword [ecx], ebx
push eax
call fcn.301089da
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x300fad7b
push ebx
push 0x326b6473
jmp 0x300fad1d
cmp dword [ebp + 0xc], 0xffffffff
push esi
push edi
ja 0x300faeac
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x300fad98
mov al, byte [eax]
cmp al, 1
je 0x300faeac
mov edi, dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 8]
push ebx
push 9
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x300fae1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x300fae99
cmp dword [ebp - 4], ebx
ja 0x300fadd8
push ebx
push 0x326b6474
call fcn.3010aa60
cmp dword [ebp - 4], edi
ja 0x300fade8
push ebx
push 0x326b6475
call fcn.3010aa60
mov edi, dword [ebp - 4]
push dword [ebp - 8]
mov dword [ebp - 0x10], edi
call fcn.300ee73d
pop ecx
push edi
call fcn.301089da
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x300fae81
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push ebx
push 9
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x300fae91
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x300fae2d
push ebx
push 0x326b6479
call fcn.3010aa60
mov esi, dword [ebp - 8]
xor edi, edi
mov eax, dword [esi + 0xc]
push 0x3c
xor edx, edx
pop ecx
div ecx
cmp eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
jb 0x300fae5b
push dword [ebp + 0x14]
push esi
call dword [ebp + 0x10]
test al, al
mov eax, dword [ebp + 0x18]
jne 0x300fae55
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x300fae5b
inc dword [eax]
mov eax, dword [esi]
add edi, eax
add esi, eax
cmp edi, dword [ebp - 0xc]
jb 0x300fae32
je 0x300fae73
push ebx
push 0x326b647a
call fcn.3010aa60
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x18], eax
jae 0x300fad87
jmp 0x300faeac
push ebx
push 0x326b6476
call fcn.3010aa60
mov byte [ebp + 0xb], bl
jmp 0x300faeba
push ebx
push 0x326b6477
jmp 0x300faea4
cmp eax, 0x26
je 0x300faeac
push ebx
push 0x326b6478
call fcn.3010aa60
mov byte [ebp + 0xb], bl
cmp dword [ebp - 8], ebx
je 0x300faeba
push dword [ebp - 8]
call fcn.300ee73d
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x300fb066
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0xc], ebx
jne 0x300fb09f
push esi
push 0x326b6433
call fcn.3010aa60
xor eax, eax
jmp 0x300fb15d
push edi
xor edi, edi
inc edi
cmp dword [ebp - 4], edi
jbe 0x300fb0ba
push dword [ebx + edi*4]
call fcn.30123986
inc edi
cmp edi, dword [ebp - 4]
lea esi, [esi + eax + 1]
jb 0x300fb0a8
mov ebx, 0x30001df0
push ebx
call fcn.30123986
lea edi, [esi + eax + 2]
push 2
xor ecx, ecx
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.301089da
mov esi, eax
test esi, esi
jne 0x300fb0f2
push eax
push 0x326b6434
call fcn.3010aa60
jmp 0x300fb151
and word [esi], 0
xor eax, eax
inc eax
cmp dword [ebp - 4], eax
mov dword [ebp - 8], eax
jbe 0x300fb130
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
push dword [eax + ecx*4]
push edi
push esi
call fcn.300f306f
test eax, eax
jl 0x300fb161
push 0x300037fc
push edi
push esi
call fcn.300f306f
test eax, eax
jl 0x300fb161
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jb 0x300fb101
push ebx
push edi
push esi
call fcn.300f306f
test eax, eax
jge 0x300fb151
push 0
push 0x326b6436
call fcn.3010aa60
push esi
call fcn.300ee73d
xor esi, esi
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
push 0
push 0x326b6435
jmp 0x300fb143
Function at 0x300fb536
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x206
mov dword [ebp - 0x46c], eax
lea eax, [ebp - 0x20a]
push ebx
push eax
mov byte [ebp - 0x45d], 1
mov word [ebp - 0x20c], bx
call sub.MSVCR80.dll_memset
push 0x24c
lea eax, [ebp - 0x458]
push ebx
push eax
mov dword [ebp - 0x45c], ebx
call sub.MSVCR80.dll_memset
add esp, 0x18
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.301255f4
push 0x5c
lea eax, [ebp - 0x20c]
push eax
call fcn.30123b5b
cmp eax, ebx
je 0x300fb5bc
mov word [eax], bx
lea eax, [ebp - 0x20c]
push eax
call fcn.30123986
mov edi, eax
lea eax, [ebp - 0x45c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x464], eax
jne 0x300fb5f5
push ebx
push 0x32743075
call fcn.3010aa60
xor al, al
jmp 0x300fb6f7
cmp byte [ebp + 0xc], bl
je 0x300fb607
test byte [ebp - 0x45c], 0x10
jne 0x300fb6b4
cmp word [ebp - 0x430], 0x2e
je 0x300fb6b4
lea eax, [ebp - 0x430]
push eax
call fcn.30123986
lea esi, [eax + edi + 2]
push 2
xor ecx, ecx
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.301089da
cmp eax, ebx
mov dword [ebp - 0x468], eax
jne 0x300fb656
push ebx
push 0x32743076
call fcn.3010aa60
mov byte [ebp - 0x45d], bl
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x300027c0
push esi
push dword [ebp - 0x468]
call fcn.300ee78d
add esp, 0x14
test eax, eax
jge 0x300fb68d
push ebx
push 0x32743077
call fcn.3010aa60
mov byte [ebp - 0x45d], bl
mov ecx, dword [ebp - 0x46c]
lea eax, [ebp - 0x468]
push eax
call fcn.300ef12f
test eax, eax
jne 0x300fb6b4
push ebx
push 0x32743078
call fcn.3010aa60
mov byte [ebp - 0x45d], bl
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x300fb5f5
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x300fb6f1
push ebx
push 0x32736276
call fcn.3010aa60
mov al, byte [ebp - 0x45d]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30136bd1
leave
ret 0xc
Function at 0x300fbd3d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x224]
mov byte [ebp - 0x20d], 1
call fcn.300f1eaa
xor ebx, ebx
push ebx
push 0x14
push 0x14
lea eax, [ebp - 0x224]
push eax
call fcn.3012a940
test eax, eax
jne 0x300fbd9e
cmp dword [ebp - 0x218], ebx
je 0x300fbd97
push dword [ebp - 0x214]
push dword [ebp - 0x218]
call fcn.3010abc5
xor al, al
jmp 0x300fbe7f
push esi
push 0x206
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.300fa721
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x30002304
call fcn.30125676
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.30125676
lea eax, [ebp - 0x224]
push eax
push 1
lea eax, [ebp - 0x20c]
push eax
call fcn.300fb536
test al, al
jne 0x300fbe17
push ebx
push 0x32743072
call fcn.3010aa60
mov byte [ebp - 0x20d], bl
xor esi, esi
cmp dword [ebp - 0x224], ebx
jbe 0x300fbe5f
mov eax, dword [ebp - 0x218]
lea eax, [eax + esi*4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x300fbe47
push ebx
push 0x32743074
call fcn.3010aa60
mov byte [ebp - 0x20d], bl
mov eax, dword [ebp - 0x218]
push dword [eax + esi*4]
call fcn.300ee73d
inc esi
cmp esi, dword [ebp - 0x224]
pop ecx
jb 0x300fbe21
cmp dword [ebp - 0x218], ebx
pop esi
je 0x300fbe79
push dword [ebp - 0x214]
push dword [ebp - 0x218]
call fcn.3010abc5
mov al, byte [ebp - 0x20d]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.30136bd1
leave
ret 4