joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411ad0
Capabilities:
Delete file

Disassembly:
push edi
mov edi, ecx
cmp word [edi], 0
jne 0x411af6
lea ecx, [edi + 0x410]
mov edx, 0x104
push ecx
push str.FilePath_not_set.
push ecx
call fcn.00401190
xor eax, eax
pop edi
ret 4
push ebx
push esi
push ecx
push edi
lea esi, [edi + 0x208]
mov ebx, 0x104
push ecx
mov edx, ebx
mov ecx, esi
call fcn.00401190
mov ecx, ebx
mov eax, esi
cmp word [eax], 0
je 0x411b21
add eax, 2
sub ecx, 1
jne 0x411b13
mov eax, ebx
mov edx, ecx
sub eax, ecx
neg edx
sbb edx, edx
and edx, eax
test ecx, ecx
je 0x411b44
push ecx
push 0x4364a8
push ecx
sub ebx, edx
lea ecx, [esi + edx*2]
mov edx, ebx
call fcn.00401190
push ecx
lea eax, [edi + 0x410]
mov edx, esi
push eax
push ecx
mov ecx, edi
call fcn.0040f260
add esp, 0xc
test eax, eax
jne 0x411b9c
push eax
push 0x4000000
push 5
push eax
push eax
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x411b8a
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov word [esi], ax
pop esi
pop ebx
pop edi
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov word [esi], ax
pop esi
pop ebx
pop edi
ret 4
pop esi
pop ebx
mov eax, 1
pop edi
ret 4
Function at 0x413140
Capabilities:
Get common file path
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov edx, 0xa9c
mov eax, esi
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub edx, 1
jne 0x413150
mov eax, 0x99
mov dword [esi + 0x8c], 1
mov word [esi], ax
mov dword [esi + 0x90], 1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov eax, ecx
and eax, 0x3ff
sub eax, 0xa
je 0x413196
sub eax, 2
je 0x413196
mov ecx, 9
mov eax, dword fs:[0x2c]
mov word [esi + 2], cx
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov eax, dword [0x43ebe8]
cmp eax, dword [ecx + 4]
jle 0x4131f5
push 0x43ebe8
call fcn.0041be99
add esp, 4
cmp dword [0x43ebe8], 0xffffffff
jne 0x4131f5
push str.SHGetKnownFolderPath
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43ebe8
mov dword [0x43ebcc], eax
call fcn.0041be48
add esp, 4
mov eax, dword [0x43ebcc]
test eax, eax
je 0x41322b
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x42e650
call eax
lea ecx, [esi + 0x94]
test eax, eax
jns 0x413231
push ecx
push 0
push 0
push 0xe
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0x94]
push ecx
push dword [ebp - 4]
mov edx, 0x104
push ecx
call fcn.00401190
mov eax, dword [ebp - 4]
test eax, eax
je 0x41324e
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413260
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
lea eax, [ebp - 0x214]
mov esi, edx
push eax
push 1
push 0
push 0x1c
push 0
mov edi, ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.dlnowconf
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x208
lea eax, [ebp - 0x82c]
push 0
push eax
call fcn.0041d2c0
push 0x208
lea eax, [ebp - 0x624]
push 0
push eax
call fcn.0041d2c0
push 0x208
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.0041d2c0
add esp, 0x20
lea eax, [ebp - 0x214]
mov edx, 0x104
push eax
push ecx
lea ecx, [ebp - 0x82c]
call fcn.00401190
push ecx
lea ecx, [ebp - 0x82c]
call fcn.00411ad0
test eax, eax
je 0x41348e
push ecx
push esi
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x214]
call fcn.00401190
mov ecx, 0x104
lea eax, [ebp - 0x214]
cmp word [eax], 0
je 0x413334
add eax, 2
sub ecx, 1
jne 0x413326
mov eax, 0x104
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x413363
push ecx
push 0x436954
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x214]
sub edx, esi
lea ecx, [ecx + esi*2]
call fcn.00401190
mov ecx, 0x104
lea eax, [ebp - 0x214]
nop
cmp word [eax], 0
je 0x41337e
add eax, 2
sub ecx, 1
jne 0x413370
mov eax, 0x104
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x4133ab
push ecx
push dword [ebp + 8]
mov edx, 0x104
push ecx
lea ecx, [ebp - 0x214]
sub edx, esi
lea ecx, [ecx + esi*2]
call fcn.00401190
cmp word [ebp - 0x82c], 0
je 0x413477
cmp word [ebp - 0x624], 0
lea ecx, [ebp - 0x82c]
lea eax, [ebp - 0x624]
cmove eax, ecx
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push str.credentials
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp word [ebp - 0x82c], 0
je 0x413477
cmp word [ebp - 0x624], 0
je 0x413477
push ecx
lea eax, [ebp - 0x41c]
push eax
push ecx
lea edx, [ebp - 0x82c]
lea ecx, [ebp - 0x624]
call fcn.0040f260
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x624]
push 0
push 0x4000000
push 5
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41345e
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret
push ecx
push str.FilePath_not_set.
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x41c]
call fcn.00401190
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret
Function at 0x413750
Capabilities:
Get common file path
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x43e0ac], 0
push ebx
push esi
push edi
je 0x41391d
lea eax, [ebp - 0x810]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.dlnowlist
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41391d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x413916
test ebx, ebx
je 0x413916
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
je 0x413916
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x814], eax
call esi
push edi
call esi
mov ecx, dword [ebp - 0x814]
test ecx, ecx
je 0x41391d
mov eax, 0xb529edf5
mul ebx
mov edi, edx
shr edi, 0xc
test edi, edi
jle 0x4138fe
mov ebx, dword [sym.imp.SHLWAPI.dll_UrlGetPartW]
lea esi, [ecx + 0x80]
nop word [eax + eax]
mov ecx, esi
call fcn.00410160
test eax, eax
je 0x4138e9
xor eax, eax
mov word [ebp - 0x208], ax
mov word [ebp - 0x408], ax
mov word [ebp - 0x608], ax
cmp dword [0x43e0b4], eax
je 0x4138bb
push eax
push 2
lea eax, [ebp - 0x818]
mov dword [ebp - 0x818], 0x100
push eax
lea eax, [ebp - 0x608]
push eax
push esi
call ebx
test eax, eax
jne 0x4138bb
lea eax, [ebp - 0x208]
push eax
lea edx, [ebp - 0x408]
lea ecx, [ebp - 0x608]
call fcn.004134a0
add esp, 4
xor ecx, ecx
lea eax, [ebp - 0x208]
cmp word [ebp - 0x208], cx
cmove eax, ecx
cmp word [ebp - 0x408], cx
push eax
lea eax, [ebp - 0x408]
cmove eax, ecx
push eax
lea eax, [esi - 0x80]
push eax
push esi
call fcn.004014e0
add esi, 0x169c
sub edi, 1
jne 0x413850
mov ecx, dword [ebp - 0x814]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret
Function at 0x4141c0
Capabilities:
Encode data using xor
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2a4], edx
lea ecx, [ebp - 0x88]
call fcn.00414040
test eax, eax
jne 0x414202
push ecx
push 0x436718
push ecx
lea edx, [eax + 0x40]
lea ecx, [ebp - 0x88]
call fcn.00401190
push 0x43e0bc
mov dword [edi], 0x838
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
lea edx, [ebp - 0x2a0]
shr eax, 2
mov ecx, 0x43e0bc
mov esi, 4
lea ebx, [eax*4 + 0x43e0bc]
mov eax, edx
sub edi, eax
mov eax, dword [edi + edx]
lea edx, [edx + 4]
xor eax, dword [ecx]
add ecx, 4
mov dword [edx - 4], eax
cmp ecx, ebx
mov eax, 0x43e0bc
cmovne eax, ecx
mov ecx, eax
sub esi, 1
jne 0x414233
lea eax, [ebp - 0x290]
push eax
push 1
push esi
push 0x23
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, 0x104
lea eax, [ebp - 0x290]
cmp word [eax], 0
je 0x41427e
add eax, 2
sub ecx, 1
jne 0x414270
mov edi, 0x104
mov esi, ecx
mov eax, edi
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x4142ac
push ecx
push 0x4364a4
push ecx
mov edx, edi
lea ecx, [ebp - 0x290]
sub edx, esi
lea ecx, [ecx + esi*2]
call fcn.00401190
mov ecx, edi
lea eax, [ebp - 0x290]
cmp word [eax], 0
je 0x4142c2
add eax, 2
sub ecx, 1
jne 0x4142b4
mov eax, edi
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x4142ed
push ecx
lea eax, [ebp - 0x88]
sub edi, esi
push eax
push ecx
lea ecx, [ebp - 0x290]
mov edx, edi
lea ecx, [ecx + esi*2]
call fcn.00401190
xor ebx, ebx
lea eax, [ebp - 0x290]
cmp dword [ebp - 0x2a4], ebx
push 0
push 0x80
setne bl
add ebx, 3
push ebx
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
cmp esi, 0xffffffff
je 0x41436b
push 0
lea eax, [ebp - 0x2a4]
mov dword [ebp - 0x2a4], 0
push eax
push 0x10
lea eax, [ebp - 0x2a0]
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2a4], 0x10
jne 0x41436b
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x290]
push eax
push 1
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push 0x80
push ebx
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4143fc
push 0
lea eax, [ebp - 0x2a4]
mov dword [ebp - 0x2a4], 0
push eax
push 0x10
lea eax, [ebp - 0x2a0]
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x2a4], 0x10
sete al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret
Function at 0x414410
Capabilities:
Encode data using xor
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea ecx, [ebp - 0x88]
call fcn.00414040
test eax, eax
jne 0x414449
push ecx
push 0x436718
push ecx
lea edx, [eax + 0x40]
lea ecx, [ebp - 0x88]
call fcn.00401190
lea eax, [ebp - 0x290]
push eax
push 1
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, 0x104
lea eax, [ebp - 0x290]
nop dword [eax]
cmp word [eax], 0
je 0x41447e
add eax, 2
sub ecx, 1
jne 0x414470
mov edi, 0x104
mov esi, ecx
mov eax, edi
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x4144ac
push ecx
push 0x4364a4
push ecx
mov edx, edi
lea ecx, [ebp - 0x290]
sub edx, esi
lea ecx, [ecx + esi*2]
call fcn.00401190
mov ecx, edi
lea eax, [ebp - 0x290]
cmp word [eax], 0
je 0x4144c2
add eax, 2
sub ecx, 1
jne 0x4144b4
mov eax, edi
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
test ecx, ecx
je 0x4144ed
push ecx
lea eax, [ebp - 0x88]
sub edi, esi
push eax
push ecx
lea ecx, [ebp - 0x290]
mov edx, edi
lea ecx, [ecx + esi*2]
call fcn.00401190
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
lea eax, [ebp - 0x290]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x414564
lea eax, [ebp - 0x290]
push eax
push 1
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
lea eax, [ebp - 0x290]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x414614
push 0
lea eax, [ebp - 0x2b4]
mov dword [ebp - 0x2b4], 0
push eax
push 0x10
lea eax, [ebp - 0x2b0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2b4], 0x10
jne 0x414614
push 0x43e0bc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov ecx, 0x43e0bc
shr eax, 2
mov esi, 4
xor edx, edx
lea edi, [eax*4 + 0x43e0bc]
nop
mov eax, dword [ebp + edx - 0x2b0]
lea edx, [edx + 4]
xor eax, dword [ecx]
add ecx, 4
mov dword [ebp + edx - 0x2a4], eax
cmp ecx, edi
mov eax, 0x43e0bc
cmovne eax, ecx
mov ecx, eax
sub esi, 1
jne 0x4145c0
cmp dword [ebp - 0x2a0], 0x838
jne 0x414614
movups xmm0, xmmword [ebp - 0x2a0]
lea eax, [esi + 1]
movups xmmword [0x43d5e8], xmm0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret
Function at 0x414630
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 0x200
mov edi, ecx
mov byte [ebp - 0x204], 0
lea ecx, [ebp - 0x204]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x414678
mov byte [ebp - 5], al
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x204]
push eax
call esi
lea ecx, [ebp - 0x408]
mov dword [ebp - 0x408], 0x200
push ecx
lea ecx, [ebp - 0x404]
push ecx
push SysReAllocString
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x4147f6
mov al, byte [ebp - 0x404]
lea edx, [ebp - 0x404]
mov ecx, edx
test al, al
je 0x4146e0
nop dword [eax]
lea edx, [edx + 1]
cmp al, 0xa
je 0x4146da
mov byte [ecx], al
inc ecx
mov al, byte [edx]
test al, al
jne 0x4146d0
lea eax, [ebp - 0x404]
mov byte [ecx], 0
push eax
call esi
test eax, eax
je 0x4147f6
mov cl, byte [ebp - 0x404]
lea eax, [ebp - 0x404]
test cl, cl
je 0x414719
mov dl, byte [eax + 1]
test dl, dl
je 0x414719
mov byte [eax], dl
mov byte [eax + 1], cl
add eax, 2
mov cl, byte [eax]
test cl, cl
jne 0x414704
push ebx
lea eax, [ebp - 0x404]
push eax
call esi
movups xmm0, xmmword [0x435d78]
mov cl, byte [0x435d88]
mov ebx, eax
xor edx, edx
mov byte [ebp - 0x40c], cl
xor esi, esi
movups xmmword [ebp - 0x41c], xmm0
test ebx, ebx
je 0x414786
nop word [eax + eax]
movzx ecx, byte [ebp + esi - 0x404]
inc esi
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [ebp + eax - 0x41c]
mov byte [ebp + edx - 0x204], al
movzx eax, byte [ebp + ecx - 0x41c]
mov byte [ebp + edx - 0x203], al
add edx, 2
cmp esi, ebx
jb 0x414750
mov byte [ebp + edx - 0x204], 0
lea eax, [ebp - 0x204]
mov cl, byte [ebp - 0x204]
pop ebx
test cl, cl
je 0x4147b5
nop
mov dl, byte [eax + 1]
test dl, dl
je 0x4147b5
mov byte [eax], dl
mov byte [eax + 1], cl
add eax, 2
mov cl, byte [eax]
test cl, cl
jne 0x4147a0
push 0x200
push edi
xor eax, eax
push 0xffffffffffffffff
mov word [edi], ax
lea eax, [ebp - 0x204]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4147e1
mov word [edi + 0x3fe], ax
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4147ff
xor eax, eax
mov word [edi], ax
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0041bbdc
mov esp, ebp
pop ebp
ret
Function at 0x41b450
Capabilities:
Read file via mapping
Terminate process

Disassembly:
push esi
push edi
push str.DLNOWFILEMAPPING
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov edi, eax
test edi, edi
je 0x41b4a9
push 4
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x41b49a
mov eax, dword [esi]
test eax, eax
je 0x41b493
push 0xa
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.DLNOWFILEMAPPING
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x43e0e4], eax
pop edi
test eax, eax
je 0x41b4e9
push 4
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x43d5f8], eax
test eax, eax
je 0x41b4e9
mov dword [eax], 0
pop esi
ret
Function at 0x41c710
Capabilities:
Parse pe header

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

Function at 0x424fcd
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x43c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x425018
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00425168
test al, al
jne 0x425012
sub edx, 2
cmp edx, edi
jne 0x424ff8
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x42503a
lea eax, [edi + 2]
cmp edx, eax
je 0x42503a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00424f19
add esp, 0x10
jmp 0x425134
push esi
lea ecx, [ebp - 0x255]
call fcn.00425168
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42507d
push dword [ebp - 0x25c]
jmp 0x42502a
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4250ba
cmp word [ebp - 0x226], 0
je 0x4250db
cmp word [ebp - 0x226], ax
jne 0x4250ba
cmp word [ebp - 0x224], 0
je 0x4250db
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00424f19
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x425127
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x425094
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x42510f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x425134
push 0x424d49
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00429660
add esp, 0x10
jmp 0x425104
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bbdc
leave
ret

Function at 0x426905
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430944
push 0x43093c
push str.FlsAlloc
push 0x1f
call fcn.00426840
mov esi, eax
add esp, 0x10
test esi, esi
je 0x426939
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e5e4]
call esi
jmp 0x42693f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x426983
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430954
push 0x43094c
push str.FlsGetValue
push 0x21
call fcn.00426840
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4269ba
push dword [ebp + 8]
mov ecx, esi
call dword [0x42e5e4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4269c2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43095c
push 0x430954
push str.FlsSetValue
push 0x22
call fcn.00426840
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4269fc
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42e5e4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42d4a0
Capabilities:
Parse pe header

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

Function at 0x424040
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
mov esi, dword [esp + 0x360]
push edi
xor edi, edi
mov dword [esp + 0x14], ecx
push esi
mov dword [esp + 0x14], edi
call fcn.0040c9d0
add esp, 4
test eax, eax
je 0x42420e
mov ebx, dword [esp + 0x368]
test ebx, ebx
je 0x42420e
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [esp + 0x18]
push esi
push eax
call edi
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.0040ce70
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrcatA]
add esp, 8
lea edx, [esp + 0x18]
push ebx
push edx
call ebp
lea eax, [esp + 0x220]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x424137
call fcn.004246e0
lea edx, [esp + 0x11c]
push esi
push edx
call edi
lea eax, [esp + 0x11c]
push 0x104
push eax
call fcn.0040ce70
add esp, 8
lea ecx, [esp + 0x24c]
lea edx, [esp + 0x11c]
push ecx
push edx
call ebp
test byte [esp + 0x220], 0x10
jne 0x42411d
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x11c]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
jl 0x42411d
inc dword [esp + 0x10]
lea eax, [esp + 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4240c3
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [esp + 0x18]
push esi
push ecx
call edi
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.0040ce70
add esp, 8
lea eax, [esp + 0x18]
push 0x42b1bc
push eax
call ebp
lea ecx, [esp + 0x220]
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4241fd
call fcn.004246e0
test byte [esp + 0x220], 0x10
je 0x4241e3
cmp byte [esp + 0x24c], 0x2e
je 0x4241e3
lea eax, [esp + 0x11c]
push esi
push eax
call edi
lea ecx, [esp + 0x11c]
push 0x104
push ecx
call fcn.0040ce70
add esp, 8
lea edx, [esp + 0x24c]
lea eax, [esp + 0x11c]
push edx
push eax
call ebp
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x11c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00424040
add dword [esp + 0x10], eax
lea eax, [esp + 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x42417b
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret 8