joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1fb4
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
test byte [eax + 0x394], 1
je 0x4a1fca
or edx, 0x10000000
jmp 0x4a1fd0
or edx, 0x20000000
test byte [eax + 0x394], 2
je 0x4a1fe1
or edx, 0x40000000
jmp 0x4a1fe7
or edx, 0x80000000
test byte [eax + 0x394], 4
je 0x4a1ff5
or edx, 1
jmp 0x4a1ff8
or edx, 1
test byte [eax + 0x394], 8
je 0x4a2006
or edx, 2
jmp 0x4a2009
or edx, 2
test byte [eax + 0x394], 0x10
je 0x4a2017
or edx, 4
jmp 0x4a201a
or edx, 4
test byte [eax + 0x394], 0x20
je 0x4a2028
or edx, 6
jmp 0x4a202b
or edx, 6
test byte [eax + 0x394], 0x40
je 0x4a2039
or edx, 8
jmp 0x4a203c
or edx, 8
push edx
mov eax, dword [eax + 0x288]
push eax
call sub.shlwapi.dll_SHAutoComplete
pop ebp
ret
Function at 0x46b830
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x26000]
push edi
or ebp, 0xffffffff
jmp 0x46b852
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46b859
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46b848
mov eax, 1
add ebx, ebx
jne 0x46b86b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46b87c
jne 0x46b89b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46b89b
dec eax
add ebx, ebx
jne 0x46b888
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x46b860
add ebx, ebx
jne 0x46b897
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x46b8ed
xor ecx, ecx
sub eax, 3
jb 0x46b8b3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46b922
sar eax, 1
mov ebp, eax
jmp 0x46b8be
add ebx, ebx
jne 0x46b8be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46b88c
inc ecx
add ebx, ebx
jne 0x46b8cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46b88c
add ebx, ebx
jne 0x46b8d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46b8ce
jne 0x46b8ea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46b8ce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46b90c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46b8fe
jmp 0x46b84e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46b90c
add edi, ecx
jmp 0x46b84e
pop esi
mov edi, esi
mov ecx, 0x915
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46b92a
cmp byte [edi], 0x11
jne 0x46b92a
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 al, bl
loop 0x46b92f
lea edi, [esi + 0x69000]
mov eax, dword [edi]
or eax, eax
je 0x46b9a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x711e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x71290]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46b95c
mov ecx, edi
jns 0x46b98b
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 + 0x71298]
or eax, eax
je 0x46b9a1
mov dword [ebx], eax
add ebx, 4
jmp 0x46b979
call dword [esi + 0x71294]
mov ebp, dword [esi + 0x7129c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x46b9db
sub esp, 0xffffff80
jmp 0x403209
Function at 0x40c20d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a548]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00409883
mov dword [ebp - 0x14], eax
cmp dword [0x819958], esi
jne 0x40c300
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c28d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c3e0
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c3e0
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c3e0
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x819958], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x81995c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x819960], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x819968], eax
test eax, eax
je 0x40c2fd
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x819964], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c325
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c318
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c33a
push 4
pop eax
jmp 0x40c3e2
cmp dword [ebp - 0x14], esi
je 0x40c33a
push dword [0x819958]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c31f
mov eax, dword [0x819964]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c398
cmp dword [0x819968], edi
je 0x40c398
push eax
call ebx
push dword [0x819968]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c398
test eax, eax
je 0x40c398
call ecx
test eax, eax
je 0x40c38d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c38d
test byte [ebp - 8], 1
jne 0x40c398
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c3c8
mov eax, dword [0x81995c]
cmp eax, edi
je 0x40c3c5
push eax
call ebx
test eax, eax
je 0x40c3c5
call eax
mov esi, eax
test esi, esi
je 0x40c3c5
mov eax, dword [0x819960]
cmp eax, edi
je 0x40c3c5
push eax
call ebx
test eax, eax
je 0x40c3c5
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x819958]
call ebx
test eax, eax
je 0x40c3e0
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c3e2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404320
mov esp, ebp
pop ebp
ret
Function at 0x401271
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
push esi
push ecx
pop esi
sub ecx, ecx
mov edx, dword [esi + 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
add edx, esi
mov dword [eax], ecx
mov eax, 0x14c
push edi
push ecx
pop edi
cmp word [edx + 4], ax
jne 0x4013b8
push ebx
mov ebx, dword [edx + 0x88]
mov dword [ebp - 0x14], ebx
or ebx, ebx
je 0x4013b7
cmp dword [edx + 0x8c], ecx
je 0x4013b7
movzx eax, word [edx + 0x14]
add eax, 0x18
add eax, edx
movzx edx, word [edx + 6]
or edx, edx
je 0x4013b7
cmp dword [eax + 0xc], ebx
je 0x4012e2
inc ecx
add eax, 0x28
cmp ecx, edx
jb 0x4012d0
jmp 0x4013b7
mov edx, dword [eax + 0x14]
add edx, esi
push 0
movzx ecx, word [edx + 0xe]
movzx eax, word [edx + 0xc]
add ecx, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], ecx
pop ebx
je 0x4013b7
xor eax, eax
mov esi, dword [edx + eax*8 + 0x14]
and esi, 0x7fffffff
add esi, edx
push 0
movzx ecx, word [esi + 0xe]
movzx eax, word [esi + 0xc]
add ecx, eax
mov dword [ebp - 0x18], ecx
pop ecx
mov dword [ebp - 0xc], ecx
je 0x4013aa
xor eax, eax
cmp word [esi + eax*8 + 0x10], 0x65
jne 0x40139a
mov ecx, dword [esi + eax*8 + 0x14]
and ecx, 0x7fffffff
add ecx, edx
mov dword [ebp - 8], 0
movzx eax, word [ecx + 0xe]
mov dword [ebp - 4], eax
movzx eax, word [ecx + 0xc]
add dword [ebp - 4], eax
je 0x401393
sub eax, eax
mov edx, 0x409
cmp word [ecx + eax*8 + 0x10], dx
mov edx, dword [ebp - 0x10]
je 0x401376
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
movzx eax, ax
cmp eax, dword [ebp - 4]
jb 0x401356
jmp 0x401393
mov ecx, dword [ecx + eax*8 + 0x14]
mov edi, dword [ebp + 0xc]
mov eax, dword [ecx + edx]
sub eax, dword [ebp - 0x14]
add eax, edx
mov dword [edi], eax
mov eax, dword [ecx + edx + 4]
mov ecx, dword [ebp + 0x10]
sub edi, edi
mov dword [ecx], eax
inc edi
or edi, edi
jne 0x4013b7
mov ecx, dword [ebp - 0xc]
inc ecx
movzx eax, cx
mov dword [ebp - 0xc], ecx
cmp eax, dword [ebp - 0x18]
jb 0x401329
or edi, edi
jne 0x4013b7
inc ebx
movzx eax, bx
cmp eax, dword [ebp - 0x1c]
jb 0x401302
pop ebx
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
push ebx
push esi
push edi
mov edi, edx
mov ebx, edi
shr ebx, 2
and edi, 3
mov esi, ecx
test ebx, ebx
je 0x4013f3
mov al, byte [ebp + 0xc]
mov edx, dword [esi]
add al, bl
movzx ecx, al
mov eax, dword [ebp + 8]
ror edx, cl
xor edx, eax
sub edx, ebx
mov dword [esi], edx
add esi, 4
dec ebx
jne 0x4013d6
jmp 0x4013f6
mov eax, dword [ebp + 8]
test edi, edi
je 0x401400
xor byte [esi], al
inc esi
dec edi
jne 0x4013fa
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x401407
Capabilities:
Terminate process

Disassembly:
push ebx
mov eax, 0x4afa7
mov ebx, 0x12345678
mov ecx, 0x12345678
mov edx, 0x12345678
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [section..data], eax
jmp loc.0047950e
Function at 0x7c004075
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
je 0x7c00bd2d
push esi
push 0x88
push 1
call sym.MSVCR70.dll_calloc
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x7c00bd4f
push esi
call fcn.7c00173b
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
je 0x7c00bd3f
push eax
push dword [ebp + 0x18]
push esi
push 0x7c0040e2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x7c00bd47
pop esi
pop edi
pop ebx
pop ebp
ret
call sym.MSVCR70.dll__errno
mov dword [eax], 0x16
xor eax, eax
jmp 0x7c0040de
lea eax, [ebp + 0x10]
jmp 0x7c0040bf
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push esi
call sym.MSVCR70.dll_free
test ebx, ebx
pop ecx
je 0x7c00bd61
push ebx
call fcn.7c0102b7
pop ecx
xor eax, eax
jmp 0x7c0040dd

Function at 0x7c004373
Capabilities:
Terminate process

Disassembly:
push 8
call fcn.7c00f342
jmp 0x7c00440a
push esi
push 8
call fcn.7c00f342
xor esi, esi
inc esi
cmp dword [0x7c04aba8], esi
pop ecx
je 0x7c00bb8d
cmp dword [esp + 0xc], 0
mov dword [0x7c04aadc], esi
mov byte [0x7c04aba4], bl
jne 0x7c0043e2
mov ecx, dword [0x7c04ab74]
test ecx, ecx
je 0x7c0043d1
mov eax, dword [0x7c04ab70]
sub eax, 4
cmp eax, ecx
mov dword [0x7c04ab70], eax
jb 0x7c0043d1
mov eax, dword [eax]
test eax, eax
je 0x7c0043c1
call eax
mov eax, dword [0x7c04ab70]
sub eax, 4
cmp eax, dword [0x7c04ab74]
jmp 0x7c0043b2
push 0x7c04ab8c
push 0x7c04ab7c
call sym.MSVCR70.dll__initterm
pop ecx
pop ecx
push 0x7c04ab98
push 0x7c04ab90
call sym.MSVCR70.dll__initterm
test ebx, ebx
pop ecx
pop ecx
jne 0x7c004134
push dword [esp + 8]
mov dword [0x7c04aba8], esi
call fcn.7c00440d
pop ecx
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
jmp 0x7c00438b
Function at 0x7c00453f
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x7c04b118]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push 2
pop ebp
jne 0x7c0045e9
call edi
mov esi, eax
cmp esi, ebx
je 0x7c00c679
mov dword [0x7c04b118], 1
cmp esi, ebx
je 0x7c00c69a
cmp word [esi], bx
mov eax, esi
je 0x7c004592
add eax, ebp
cmp word [eax], bx
jne 0x7c004584
add eax, ebp
cmp word [eax], bx
jne 0x7c004584
mov edi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x7c0045d9
push ebp
call sym.MSVCR70.dll_malloc
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x7c0045d9
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
je 0x7c00c6a7
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
cmp eax, 1
jne 0x7c00c6ba
jmp 0x7c004575
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x7c00c690
mov eax, ebp
mov dword [0x7c04b118], eax
jmp 0x7c0045e9
mov eax, dword [0x7c04b118]
jmp 0x7c0045e9
call edi
mov esi, eax
cmp esi, ebx
je 0x7c00c6c2
jmp 0x7c00457d
push dword [esp + 0x10]
call sym.MSVCR70.dll_free
pop ecx
mov dword [esp + 0x10], ebx
jmp 0x7c0045d5
cmp eax, ebp
je 0x7c00c6c9
cmp eax, ebx
je 0x7c00c6c9
xor eax, eax
jmp 0x7c0045e2
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x7c00c6c2
cmp byte [esi], bl
je 0x7c00c6e3
inc eax
cmp byte [eax], bl
jne 0x7c00c6d9
inc eax
cmp byte [eax], bl
jne 0x7c00c6d9
sub eax, esi
inc eax
mov ebp, eax
push ebp
call sym.MSVCR70.dll_malloc
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x7c00c6f9
xor edi, edi
jmp 0x7c00c704
push ebp
push esi
push edi
call fcn.7c00f342
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, edi
jmp 0x7c0045e2
Function at 0x7c00620f
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x7c03e560
call fcn.7c00101f
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x7c04ba0c], edi
je 0x7c006250
mov eax, dword [0x7c04ba0c]
cmp eax, ebx
jne 0x7c00d38c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
lea esp, [ebp - 0x34]
call fcn.7c00105a
ret
push edi
push edi
push ebx
push edi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x7c00d36e
mov dword [0x7c04ba0c], ebx
jmp 0x7c006228
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x7c006228
mov dword [0x7c04ba0c], 2
jmp 0x7c006228
cmp eax, 2
je 0x7c00d395
cmp eax, edi
jne 0x7c00d3bd
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x7c00d3a8
mov eax, dword [sym.MSVCR70.dll___lc_codepage]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
mov dword [ebp - 0x24], eax
cmp eax, edi
jne 0x7c00d3c4
xor eax, eax
jmp 0x7c006247
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.7c0014ee
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x7c00d3f7
cmp esi, edi
jne 0x7c00d40d
push dword [ebp - 0x24]
call sym.MSVCR70.dll_malloc
pop ecx
mov esi, eax
cmp esi, edi
je 0x7c00d3bd
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
test eax, eax
je 0x7c00d440
cmp dword [ebp + 0x14], edi
jne 0x7c00d42a
push edi
push edi
jmp 0x7c00d430
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], edi
je 0x7c00d44c
push esi
call sym.MSVCR70.dll_free
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x7c006247

Function at 0x7c00f342
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x7c00f351
pop dword [ebp - 0x1c]
mov eax, 0x711d73ac
sub eax, 0xf51c805b
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3c90c
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x45ff
mov esi, eax
mov edi, 0x1f64b79b
add edi, 0x5ca08865
add edi, dword [ebp - 0x1c]
mov edx, 0x2036cff4
add dword [ebp - 8], edi
mov ebx, dword [edi]
mov dword [ebp - 0x18], 0xcf83431f
add ebx, edx
add dword [ebp - 0x18], 0xffcda066
mov dword [esi], ebx
xor dword [ebp - 0x18], 0xea0fdb21
add esi, 4
add edi, 0x7e863e5
add edi, 0xf8179c1f
loop 0x7c00f39f
add eax, 0xb00a0761
sub eax, 0xb008fc92
mov ebx, eax
add eax, 5
mov ecx, 0x7c000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x7c00fbde
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x7c00fbfa
call sym.MSVCR70.dll__errno
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x7c00fc6c
push esi
push 0x88
push 1
call sym.MSVCR70.dll_calloc
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x7c00fc52
push esi
call fcn.7c00173b
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x7c00fb3f
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x7c00fc4a
push edi
call dword [sym.imp.kernel32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x7c00fc69
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
push esi
call sym.MSVCR70.dll_free
test ebx, ebx
pop ecx
je 0x7c00fc64
push ebx
call fcn.7c0102b7
pop ecx
or eax, 0xffffffff
jmp 0x7c00fc6b
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x7c00fcd4
Capabilities:
Enumerate files on windows

Disassembly:
cmp dword [esp + 4], 0
je 0x7c00fd32
cmp dword [0x7c04f3f0], 0
jne 0x7c00fcf8
push 0x244
call sym.MSVCR70.dll_malloc
test eax, eax
pop ecx
mov dword [0x7c04f3f0], eax
je 0x7c00fd5b
mov eax, dword [0x7c04f3f4]
test eax, eax
je 0x7c00fd0f
push eax
call dword [sym.imp.kernel32.dll_FindClose]
and dword [0x7c04f3f4], 0
push dword [0x7c04f3f0]
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [0x7c04f3f4], eax
je 0x7c00fd5b
mov eax, dword [0x7c04f3f0]
add eax, 0x2c
ret
push dword [0x7c04f3f0]
push dword [0x7c04f3f4]
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x7c00fd29
push dword [0x7c04f3f4]
call dword [sym.imp.kernel32.dll_FindClose]
and dword [0x7c04f3f4], 0
xor eax, eax
ret

Function at 0x7c00ffc3
Capabilities:
Enumerate files on windows

Disassembly:
cmp dword [esp + 4], 0
je 0x7c010021
cmp dword [0x7c04f404], 0
jne 0x7c00ffe7
push 0x354
call sym.MSVCR70.dll_malloc
test eax, eax
pop ecx
mov dword [0x7c04f404], eax
je 0x7c01004a
mov eax, dword [0x7c04f400]
test eax, eax
je 0x7c00fffe
push eax
call dword [sym.imp.kernel32.dll_FindClose]
and dword [0x7c04f400], 0
push dword [0x7c04f404]
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [0x7c04f400], eax
je 0x7c01004a
mov eax, dword [0x7c04f404]
add eax, 0x2c
ret
push dword [0x7c04f404]
push dword [0x7c04f400]
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x7c010018
push dword [0x7c04f400]
call dword [sym.imp.kernel32.dll_FindClose]
and dword [0x7c04f400], 0
xor eax, eax
ret
Function at 0x7c018cfd
Capabilities:
Set current directory

Disassembly:
push 0x10
push 0x7c03fc28
call fcn.7c00101f
mov ebx, dword [ebp + 8]
cmp ebx, 1
jl 0x7c018d6c
cmp ebx, 0x1f
jg 0x7c018d6c
push 7
call fcn.7c00f342
pop ecx
and dword [ebp - 4], 0
add ebx, 0x40
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], 0x3a
and byte [ebp - 0x1a], 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x7c018d44
and dword [ebp - 0x20], 0
jmp 0x7c018d55
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.7c0102b7
pop ecx
or dword [ebp - 0x20], 0xffffffff
or dword [ebp - 4], 0xffffffff
call fcn.7c018d63
mov eax, dword [ebp - 0x20]
jmp 0x7c018d85
call sym.MSVCR70.dll__errno
mov dword [eax], 0xd
call sym.MSVCR70.dll___doserrno
mov dword [eax], 0xf
or eax, 0xffffffff
call fcn.7c00105a
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x7c018db8
test byte [esp + 8], 0x80
je 0x7c018da6
and eax, 0xfffffffe
jmp 0x7c018da9
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
test eax, eax
jne 0x7c018dc9
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.7c0102b7
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x7c0284d7
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x7c04f564]
push ebx
push ebp
mov ebp, dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x7c028520
call ebp
mov esi, eax
cmp esi, ebx
je 0x7c028506
mov dword [0x7c04f564], 1
jmp 0x7c028525
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x7c02851b
push 2
pop eax
mov dword [0x7c04f564], eax
jmp 0x7c028520
mov eax, dword [0x7c04f564]
cmp eax, 1
jne 0x7c02857d
cmp esi, ebx
jne 0x7c028538
call ebp
mov esi, eax
cmp esi, ebx
jne 0x7c028538
xor eax, eax
jmp 0x7c028624
cmp word [esi], bx
mov eax, esi
je 0x7c02854d
inc eax
inc eax
cmp word [eax], bx
jne 0x7c02853f
inc eax
inc eax
cmp word [eax], bx
jne 0x7c02853f
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call sym.MSVCR70.dll_malloc
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x7c028570
xor edi, edi
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x7c028624
push ebp
push esi
push edi
call fcn.7c00f342
add esp, 0xc
jmp 0x7c028562
cmp eax, 2
je 0x7c028586
cmp eax, ebx
jne 0x7c028531
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x7c028531
cmp byte [ebp], bl
mov esi, ebp
je 0x7c0285bc
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x7c028531
push esi
add edi, eax
call sym.MSVCR70.dll_strlen
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x7c028599
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call sym.MSVCR70.dll_malloc
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x7c028635
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x7c028616
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x7c02862b
push edi
call sym.MSVCR70.dll_strlen
push esi
lea edi, [edi + eax + 1]
call sym.MSVCR70.dll_wcslen
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x7c0285dc
push ebp
mov word [esi], bx
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call sym.MSVCR70.dll_free
pop ecx
push ebp
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
jmp 0x7c028531